diff options
-rw-r--r-- | lib/easy.c | 6 | ||||
-rw-r--r-- | lib/timeval.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/easy.c b/lib/easy.c index ba122d905..d2d4166d5 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -98,7 +98,7 @@ static void win32_cleanup(void) #ifdef WIN32 LARGE_INTEGER Curl_freq; -int Curl_isVistaOrGreater = -1; +bool Curl_isVistaOrGreater; #endif /* win32_init() performs win32 socket initialization to properly setup the @@ -153,11 +153,11 @@ static CURLcode win32_init(void) #ifdef WIN32 if(Curl_verify_windows_version(6, 0, PLATFORM_WINNT, VERSION_GREATER_THAN_EQUAL)) { - Curl_isVistaOrGreater = 1; + Curl_isVistaOrGreater = TRUE; QueryPerformanceFrequency(&Curl_freq); } else - Curl_isVistaOrGreater = 0; + Curl_isVistaOrGreater = FALSE; #endif return CURLE_OK; diff --git a/lib/timeval.c b/lib/timeval.c index 089ed56a6..ff8d8a69a 100644 --- a/lib/timeval.c +++ b/lib/timeval.c @@ -26,7 +26,7 @@ /* set in win32_init() */ extern LARGE_INTEGER Curl_freq; -extern int Curl_isVistaOrGreater; +extern bool Curl_isVistaOrGreater; struct curltime Curl_now(void) { |