]> granicus.if.org Git - curl/commitdiff
Fix guard detection of _WIN32_WINNT for MingW in CURL_FUNC_GETNAMEINFO_ARGTYPES
authorYang Tse <yangsita@gmail.com>
Mon, 19 Dec 2005 05:57:17 +0000 (05:57 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 19 Dec 2005 05:57:17 +0000 (05:57 +0000)
acinclude.m4
ares/acinclude.m4

index c7fdc2f2d586d257ab7de23c5a4963506ce6f130..66cbdae45e417100aa91e41c7b007bf41e66c1a6 100644 (file)
@@ -211,7 +211,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
 #undef inline
 #ifdef HAVE_WINDOWS_H
 #define WIN32_LEAN_AND_MEAN
-#if defined(__MINGW32__) && (_WIN32_WINNT < 0x0501)
+#if defined(__MINGW32__) && ( (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501) )
 #undef _WIN32_WINNT
 #define _WIN32_WINNT 0x0501
 #endif
index 4f4e6fefc72bb0bf6c88b06ec87bf6a865b1f4e5..be1e4aed2414c41da85c1477f58d55fe3daddbf4 100644 (file)
@@ -211,7 +211,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
 #undef inline
 #ifdef HAVE_WINDOWS_H
 #define WIN32_LEAN_AND_MEAN
-#if defined(__MINGW32__) && (_WIN32_WINNT < 0x0501)
+#if defined(__MINGW32__) && ( (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501) )
 #undef _WIN32_WINNT
 #define _WIN32_WINNT 0x0501
 #endif