mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
win32: Added additional preprocessor check for Version Helper API
A follow up patch to commit d2671340a613 as _WIN32_WINNT_WIN2K and _WIN32_WINNT_WIN2K may not be defined on all systems.
This commit is contained in:
parent
d2671340a6
commit
e35ffda0b3
@ -921,7 +921,8 @@ void Curl_sndbufset(curl_socket_t sockfd)
|
||||
static int detectOsState = DETECT_OS_NONE;
|
||||
|
||||
if(detectOsState == DETECT_OS_NONE) {
|
||||
#if (_WIN32_WINNT < _WIN32_WINNT_WIN2K)
|
||||
#if !defined(_WIN32_WINNT) || !defined(_WIN32_WINNT_WIN2K) || \
|
||||
(_WIN32_WINNT < _WIN32_WINNT_WIN2K)
|
||||
OSVERSIONINFO osver;
|
||||
|
||||
memset(&osver, 0, sizeof(osver));
|
||||
|
@ -79,7 +79,8 @@ CURLcode Curl_sspi_global_init(void)
|
||||
DWORD majorVersion = 4;
|
||||
DWORD platformId = VER_PLATFORM_WIN32_NT;
|
||||
|
||||
#if (_WIN32_WINNT < _WIN32_WINNT_WIN2K)
|
||||
#if !defined(_WIN32_WINNT) || !defined(_WIN32_WINNT_WIN2K) || \
|
||||
(_WIN32_WINNT < _WIN32_WINNT_WIN2K)
|
||||
OSVERSIONINFO osver;
|
||||
|
||||
memset(&osver, 0, sizeof(osver));
|
||||
|
Loading…
x
Reference in New Issue
Block a user