diff options
author | Yang Tse <yangsita@gmail.com> | 2008-11-01 17:13:10 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-11-01 17:13:10 +0000 |
commit | 128418b214dbb38ea1b8d08d6641ae9cbe43921f (patch) | |
tree | cb262d3a051dc4bb60a68122f93cd6110fdb0827 | |
parent | 050a39a7a578106989b32f80a625c46a87b52ca1 (diff) |
Adjust WIN32 freeaddrinfo, getaddrinfo and getnameinfo availability
-rw-r--r-- | ares/config-win32.h | 4 | ||||
-rw-r--r-- | lib/config-win32.h | 4 | ||||
-rw-r--r-- | src/config-win32.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/ares/config-win32.h b/ares/config-win32.h index 7a7adb640..9e8f10c55 100644 --- a/ares/config-win32.h +++ b/ares/config-win32.h @@ -225,11 +225,11 @@ /* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is quite */ /* convoluted, compiler dependant and in some cases even build target dependat. */ #if defined(HAVE_WS2TCPIP_H) -# if defined(_MSC_VER) && (_MSC_VER >= 1200) +# if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501) # define HAVE_FREEADDRINFO 1 # define HAVE_GETADDRINFO 1 # define HAVE_GETNAMEINFO 1 -# elif defined(__MINGW32__) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501) +# elif defined(_MSC_VER) && (_MSC_VER >= 1200) # define HAVE_FREEADDRINFO 1 # define HAVE_GETADDRINFO 1 # define HAVE_GETNAMEINFO 1 diff --git a/lib/config-win32.h b/lib/config-win32.h index b782631de..88d011849 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -393,11 +393,11 @@ /* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is quite */ /* convoluted, compiler dependant and in some cases even build target dependat. */ #if defined(HAVE_WS2TCPIP_H) -# if defined(_MSC_VER) && (_MSC_VER >= 1200) +# if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501) # define HAVE_FREEADDRINFO 1 # define HAVE_GETADDRINFO 1 # define HAVE_GETNAMEINFO 1 -# elif defined(__MINGW32__) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501) +# elif defined(_MSC_VER) && (_MSC_VER >= 1200) # define HAVE_FREEADDRINFO 1 # define HAVE_GETADDRINFO 1 # define HAVE_GETNAMEINFO 1 diff --git a/src/config-win32.h b/src/config-win32.h index 61471a323..8b18bd5c0 100644 --- a/src/config-win32.h +++ b/src/config-win32.h @@ -247,11 +247,11 @@ /* Availability of freeaddrinfo, getaddrinfo and getnameinfo functions is quite */ /* convoluted, compiler dependant and in some cases even build target dependat. */ #if defined(HAVE_WS2TCPIP_H) -# if defined(_MSC_VER) && (_MSC_VER >= 1200) +# if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501) # define HAVE_FREEADDRINFO 1 # define HAVE_GETADDRINFO 1 # define HAVE_GETNAMEINFO 1 -# elif defined(__MINGW32__) && defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501) +# elif defined(_MSC_VER) && (_MSC_VER >= 1200) # define HAVE_FREEADDRINFO 1 # define HAVE_GETADDRINFO 1 # define HAVE_GETNAMEINFO 1 |