GNOME Bugzilla – Bug 702229
Fix warnings with ming64 runtime
Last modified: 2019-11-02 20:38:35 UTC
mingw64 <errno.h> #defined many EXXXXX errors for socket operation that duplicates the #defines in wsockcompat.h A simple workaround is to use #if (!defined(_MSC_VER) || (_MSC_VER < 1600)) && defined(__MINGW32_VERSION) at line 45 of wsockcompat.h. __MINGW32_VERSION is always and only defined for Mingw32 runtime. Tested with mingw.org API 3.18 and mingw-build and all version of libxml2 from The fix is for git head and 2.9.1 Thank you. Fabio
Should be fixed here: https://gitlab.gnome.org/GNOME/libxml2/commit/5b2324b6e007b5a03e4131877ab09f4dc8037e59