From: Pablo Galindo Date: Sat, 12 Oct 2019 19:14:11 +0000 (+0100) Subject: bpo-37731: Reorder includes in xmltok.c to avoid redefinition of _POSIX_C_SOURCE... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8177404d520e81f16324a900f093adf3856d33f8;p=python bpo-37731: Reorder includes in xmltok.c to avoid redefinition of _POSIX_C_SOURCE (GH-16733) --- diff --git a/Modules/expat/xmltok.c b/Modules/expat/xmltok.c index 11e9d1ccda..54cfedb85c 100644 --- a/Modules/expat/xmltok.c +++ b/Modules/expat/xmltok.c @@ -30,6 +30,14 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#ifdef _WIN32 +# include "winconfig.h" +#else +# ifdef HAVE_EXPAT_CONFIG_H +# include +# endif +#endif /* ndef _WIN32 */ + #include #include /* memcpy */ @@ -42,14 +50,6 @@ # include #endif -#ifdef _WIN32 -# include "winconfig.h" -#else -# ifdef HAVE_EXPAT_CONFIG_H -# include -# endif -#endif /* ndef _WIN32 */ - #include "expat_external.h" #include "internal.h" #include "xmltok.h"