Skip to content
Snippets Groups Projects
Commit d6eb1a7b authored by Yang Tse's avatar Yang Tse
Browse files

Fix guard detection of _WIN32_WINNT for MingW in CURL_FUNC_GETNAMEINFO_ARGTYPES

parent 4ff56b15
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment