diff options
author | Benjamin Peterson <benjamin@python.org> | 2019-11-07 05:29:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-07 05:29:43 (GMT) |
commit | 089e5f52a34377193a9e6c03088114b14c8507af (patch) | |
tree | 196484df34f5245d51df8e0b9c330b8541568ce1 | |
parent | 30114c7119a9ae0e610d6974f57f22d8d05ed50d (diff) | |
download | cpython-089e5f52a34377193a9e6c03088114b14c8507af.zip cpython-089e5f52a34377193a9e6c03088114b14c8507af.tar.gz cpython-089e5f52a34377193a9e6c03088114b14c8507af.tar.bz2 |
bpo-37731: Squish another _POSIX_C_SOURCE redefinition problem in expat. (GH-17077)
-rw-r--r-- | Modules/expat/xmlparse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/expat/xmlparse.c b/Modules/expat/xmlparse.c index e740f0e..09ccacb 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 <expat_config.h> +#endif /* ndef _WIN32 */ + #include <stddef.h> #include <string.h> /* memset(), memcpy() */ #include <assert.h> @@ -58,12 +64,6 @@ #define XML_BUILDING_EXPAT 1 -#ifdef _WIN32 -# include "winconfig.h" -#elif defined(HAVE_EXPAT_CONFIG_H) -# include <expat_config.h> -#endif /* ndef _WIN32 */ - #include "ascii.h" #include "expat.h" #include "siphash.h" |