From 089e5f52a34377193a9e6c03088114b14c8507af Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 6 Nov 2019 21:29:43 -0800 Subject: [PATCH] bpo-37731: Squish another _POSIX_C_SOURCE redefinition problem in expat. (GH-17077) --- Modules/expat/xmlparse.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Modules/expat/xmlparse.c b/Modules/expat/xmlparse.c index e740f0e19c7..09ccacb5aae 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"