diff options
Diffstat (limited to 'src/tool_util.c')
-rw-r--r-- | src/tool_util.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tool_util.c b/src/tool_util.c index 8bbfae03e..3ca13e7cb 100644 --- a/src/tool_util.c +++ b/src/tool_util.c @@ -28,19 +28,19 @@ #if defined(WIN32) && !defined(MSDOS) /* set in win32_init() */ -extern LARGE_INTEGER Curl_freq; -extern bool Curl_isVistaOrGreater; +extern LARGE_INTEGER tool_freq; +extern bool tool_isVistaOrGreater; /* In case of bug fix this function has a counterpart in timeval.c */ struct timeval tvnow(void) { struct timeval now; - if(Curl_isVistaOrGreater) { /* QPC timer might have issues pre-Vista */ + if(tool_isVistaOrGreater) { /* QPC timer might have issues pre-Vista */ LARGE_INTEGER count; QueryPerformanceCounter(&count); - now.tv_sec = (long)(count.QuadPart / Curl_freq.QuadPart); - now.tv_usec = (long)((count.QuadPart % Curl_freq.QuadPart) * 1000000 / - Curl_freq.QuadPart); + now.tv_sec = (long)(count.QuadPart / tool_freq.QuadPart); + now.tv_usec = (long)((count.QuadPart % tool_freq.QuadPart) * 1000000 / + tool_freq.QuadPart); } else { /* Disable /analyze warning that GetTickCount64 is preferred */ |