From: Benjamin Peterson Date: Thu, 7 Nov 2019 05:29:43 +0000 (-0800) Subject: bpo-37731: Squish another _POSIX_C_SOURCE redefinition problem in expat. (GH-17077) X-Git-Tag: v2.7.18rc1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=089e5f52a34377193a9e6c03088114b14c8507af;p=thirdparty%2FPython%2Fcpython.git bpo-37731: Squish another _POSIX_C_SOURCE redefinition problem in expat. (GH-17077) --- diff --git a/Modules/expat/xmlparse.c b/Modules/expat/xmlparse.c index e740f0e19c7d..09ccacb5aae5 100644 --- a/Modules/expat/xmlparse.c +++ b/Modules/expat/xmlparse.c @@ -39,6 +39,12 @@ # define _CRT_RAND_S #endif +#ifdef _WIN32 +# include "winconfig.h" +#elif defined(HAVE_EXPAT_CONFIG_H) +# include +#endif /* ndef _WIN32 */ + #include #include /* memset(), memcpy() */ #include @@ -58,12 +64,6 @@ #define XML_BUILDING_EXPAT 1 -#ifdef _WIN32 -# include "winconfig.h" -#elif defined(HAVE_EXPAT_CONFIG_H) -# include -#endif /* ndef _WIN32 */ - #include "ascii.h" #include "expat.h" #include "siphash.h"