Skip to content

Commit 00ff380

Browse files
committed
patch 7.4.2171
Problem: MS-Windows build fails. Solution: Add QueryPerformanceCounter().
1 parent 8e97bd7 commit 00ff380

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/ex_cmds2.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,9 @@ add_timer_info(typval_T *rettv, timer_T *timer)
12591259
dictitem_T *di;
12601260
long remaining;
12611261
proftime_T now;
1262+
# ifdef WIN3264
1263+
LARGE_INTEGER fr;
1264+
#endif
12621265

12631266
if (dict == NULL)
12641267
return;
@@ -1269,6 +1272,7 @@ add_timer_info(typval_T *rettv, timer_T *timer)
12691272

12701273
profile_start(&now);
12711274
# ifdef WIN3264
1275+
QueryPerformanceFrequency(&fr);
12721276
remaining = (long)(((double)(timer->tr_due.QuadPart - now.QuadPart)
12731277
/ (double)fr.QuadPart) * 1000);
12741278
# else

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2171,
766768
/**/
767769
2170,
768770
/**/

0 commit comments

Comments
 (0)