mirror of
https://github.com/curl/curl.git
synced 2026-07-23 01:07:16 +03:00
Removed _WIN32_WINNT to support IPv6 under Win-2K.
This commit is contained in:
parent
af69c4f4f7
commit
316e74be74
1 changed files with 0 additions and 11 deletions
11
lib/setup.h
11
lib/setup.h
|
|
@ -160,17 +160,6 @@ typedef unsigned char bool;
|
|||
#define WIN32_LEAN_AND_MEAN /* Prevent including <winsock*.h> in <windows.h> */
|
||||
#endif
|
||||
|
||||
#if (defined(ENABLE_IPV6) || defined(CURLDEBUG)) && defined(_MSC_VER) && \
|
||||
(!defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0500)
|
||||
/*
|
||||
* Needed to pull in the real getaddrinfo() and not the inline version
|
||||
* in <wspiAPI.H> which doesn't support IPv6 (IPv4 only). <wspiAPI.H> is
|
||||
* included from <ws2tcpip.h> for <= 0x0500 SDKs.
|
||||
*/
|
||||
#undef _WIN32_WINNT
|
||||
#define _WIN32_WINNT 0x0501
|
||||
#endif
|
||||
|
||||
#if HAVE_WINSOCK2_H
|
||||
#include <winsock2.h> /* required by telnet.c */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue