MingW guards getnameinfo, getaddrinfo and freeaddrinfo with _WIN32_WINNT >= 0x0501

pull/1/head
Yang Tse 19 years ago
parent 1d9efefdfa
commit 2259e593a1
  1. 4
      acinclude.m4

@ -211,6 +211,10 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
#undef inline #undef inline
#ifdef HAVE_WINDOWS_H #ifdef HAVE_WINDOWS_H
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#if defined(__MINGW32__) && (_WIN32_WINNT < 0x0501)
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0501
#endif
#include <windows.h> #include <windows.h>
#ifdef HAVE_WINSOCK2_H #ifdef HAVE_WINSOCK2_H
#include <winsock2.h> #include <winsock2.h>

Loading…
Cancel
Save