mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 7.4.2171
Problem: MS-Windows build fails. Solution: Add QueryPerformanceCounter().
This commit is contained in:
@@ -1259,6 +1259,9 @@ add_timer_info(typval_T *rettv, timer_T *timer)
|
|||||||
dictitem_T *di;
|
dictitem_T *di;
|
||||||
long remaining;
|
long remaining;
|
||||||
proftime_T now;
|
proftime_T now;
|
||||||
|
# ifdef WIN3264
|
||||||
|
LARGE_INTEGER fr;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (dict == NULL)
|
if (dict == NULL)
|
||||||
return;
|
return;
|
||||||
@@ -1269,6 +1272,7 @@ add_timer_info(typval_T *rettv, timer_T *timer)
|
|||||||
|
|
||||||
profile_start(&now);
|
profile_start(&now);
|
||||||
# ifdef WIN3264
|
# ifdef WIN3264
|
||||||
|
QueryPerformanceFrequency(&fr);
|
||||||
remaining = (long)(((double)(timer->tr_due.QuadPart - now.QuadPart)
|
remaining = (long)(((double)(timer->tr_due.QuadPart - now.QuadPart)
|
||||||
/ (double)fr.QuadPart) * 1000);
|
/ (double)fr.QuadPart) * 1000);
|
||||||
# else
|
# else
|
||||||
|
@@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2171,
|
||||||
/**/
|
/**/
|
||||||
2170,
|
2170,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user