]> granicus.if.org Git - vim/commitdiff
patch 7.4.2171 v7.4.2171
authorBram Moolenaar <Bram@vim.org>
Sat, 6 Aug 2016 20:27:28 +0000 (22:27 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 6 Aug 2016 20:27:28 +0000 (22:27 +0200)
Problem:    MS-Windows build fails.
Solution:   Add QueryPerformanceCounter().

src/ex_cmds2.c
src/version.c

index f6c054b8d29dea8228a02c40814cc7aa3a978f96..6cf26e9931ce447ccfb4c6aba7cfe9d53ed6c35d 100644 (file)
@@ -1259,6 +1259,9 @@ add_timer_info(typval_T *rettv, timer_T *timer)
     dictitem_T *di;
     long       remaining;
     proftime_T now;
+# ifdef WIN3264
+    LARGE_INTEGER   fr;
+#endif
 
     if (dict == NULL)
        return;
@@ -1269,6 +1272,7 @@ add_timer_info(typval_T *rettv, timer_T *timer)
 
     profile_start(&now);
 # ifdef WIN3264
+    QueryPerformanceFrequency(&fr);
     remaining = (long)(((double)(timer->tr_due.QuadPart - now.QuadPart)
                                               / (double)fr.QuadPart) * 1000);
 # else
index b1be507afd9a9761640bebdf6cb429bab4f902b7..98dd5f4b2dd249b1eeb32eefab21d7e7ad5cb3da 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2171,
 /**/
     2170,
 /**/