aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-01-17 22:33:44 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-01-17 22:36:41 +0000
commitd2671340a613da407613b4f157a5552b291b7c26 (patch)
tree9e4df4bcfe515df983571ca7a645519f93793f49
parentecaf2f02f1df70f0bbcbbbf48914bfc83c8f2a56 (diff)
win32: Corrected the preprocessor check for Version Helper API
Following some auto build failures after commit c7a76bb056f31e changed the preprocessor check to use _WIN32_WINNT.
-rw-r--r--lib/connect.c2
-rw-r--r--lib/curl_sspi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 46dea765e..0f7deb3cb 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -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));
diff --git a/lib/curl_sspi.c b/lib/curl_sspi.c
index 5a48e4943..1cc18877f 100644
--- a/lib/curl_sspi.c
+++ b/lib/curl_sspi.c
@@ -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));