diff --git a/lib/3rdparty/libxml2/config.h b/lib/3rdparty/libxml2/config.h index 647abdd0b5b..351dc6ef303 100644 --- a/lib/3rdparty/libxml2/config.h +++ b/lib/3rdparty/libxml2/config.h @@ -301,3 +301,7 @@ #if !defined(__MINGW32__) || defined(__NO_ISOCEXT) #define vsnprintf _vsnprintf #endif + +#if defined(__MINGW32__) +#include +#endif diff --git a/lib/3rdparty/libxml2/nanoftp.c b/lib/3rdparty/libxml2/nanoftp.c index 07455433591..a54b85b3a54 100644 --- a/lib/3rdparty/libxml2/nanoftp.c +++ b/lib/3rdparty/libxml2/nanoftp.c @@ -78,7 +78,7 @@ #if defined(__MINGW32__) || defined(_WIN32_WCE) -//#define _WINSOCKAPI_ +#define _WINSOCKAPI_ #include #include #undef XML_SOCKLEN_T diff --git a/lib/3rdparty/libxml2/nanohttp.c b/lib/3rdparty/libxml2/nanohttp.c index c1989cc3727..80e79ed892d 100644 --- a/lib/3rdparty/libxml2/nanohttp.c +++ b/lib/3rdparty/libxml2/nanohttp.c @@ -79,7 +79,7 @@ #endif #if defined(__MINGW32__) || defined(_WIN32_WCE) -//#define _WINSOCKAPI_ +#define _WINSOCKAPI_ #include #include #undef XML_SOCKLEN_T