From 128418b214dbb38ea1b8d08d6641ae9cbe43921f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sat, 1 Nov 2008 17:13:10 +0000 Subject: Adjust WIN32 freeaddrinfo, getaddrinfo and getnameinfo availability --- src/config-win32.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3