]> granicus.if.org Git - curl/commitdiff
win32: Corrected the preprocessor check for Version Helper API
authorSteve Holme <steve_holme@hotmail.com>
Fri, 17 Jan 2014 22:33:44 +0000 (22:33 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 17 Jan 2014 22:36:41 +0000 (22:36 +0000)
Following some auto build failures after commit c7a76bb056f31e changed
the preprocessor check to use _WIN32_WINNT.

lib/connect.c
lib/curl_sspi.c

index 46dea765eed80768666f1dad037a9061edf42028..0f7deb3cbab028ebbe0d0c1910ec8fee9970a636 100644 (file)
@@ -921,7 +921,7 @@ void Curl_sndbufset(curl_socket_t sockfd)
   static int detectOsState = DETECT_OS_NONE;
 
   if(detectOsState == DETECT_OS_NONE) {
-#if !defined(VerifyVersionInfo)
+#if (_WIN32_WINNT < _WIN32_WINNT_WIN2K)
     OSVERSIONINFO osver;
 
     memset(&osver, 0, sizeof(osver));
index 5a48e4943aa8666e30d44d60dbb876b222ec47cd..1cc18877f994534d16a20838865a251d6c92e0ec 100644 (file)
@@ -79,7 +79,7 @@ CURLcode Curl_sspi_global_init(void)
     DWORD majorVersion = 4;
     DWORD platformId = VER_PLATFORM_WIN32_NT;
 
-#if !defined(VerifyVersionInfo)
+#if (_WIN32_WINNT < _WIN32_WINNT_WIN2K)
     OSVERSIONINFO osver;
 
     memset(&osver, 0, sizeof(osver));