From: Bram Moolenaar Date: Sat, 6 Aug 2016 20:27:28 +0000 (+0200) Subject: patch 7.4.2171 X-Git-Tag: v7.4.2171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00ff380295338eedb6138ce87590cc6bed102e9d;p=vim patch 7.4.2171 Problem: MS-Windows build fails. Solution: Add QueryPerformanceCounter(). --- diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c index f6c054b8d..6cf26e993 100644 --- a/src/ex_cmds2.c +++ b/src/ex_cmds2.c @@ -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 diff --git a/src/version.c b/src/version.c index b1be507af..98dd5f4b2 100644 --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2171, /**/ 2170, /**/