diff --git a/lib/3rdparty/libxml2/config.h b/lib/3rdparty/libxml2/config.h index a4b01813b84..8599007f9dd 100644 --- a/lib/3rdparty/libxml2/config.h +++ b/lib/3rdparty/libxml2/config.h @@ -302,6 +302,12 @@ #define vsnprintf _vsnprintf #endif +#if defined(_MSC_VER) +#define GetModuleHandleA GetModuleHandleA_ +#endif #if defined(__MINGW32__) #include #endif +#if defined(_MSC_VER) +#undef GetModuleHandleA +#endif