]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-37731: Squish another _POSIX_C_SOURCE redefinition problem in expat. (GH-17077)
authorBenjamin Peterson <benjamin@python.org>
Thu, 7 Nov 2019 05:29:43 +0000 (21:29 -0800)
committerGitHub <noreply@github.com>
Thu, 7 Nov 2019 05:29:43 +0000 (21:29 -0800)
Modules/expat/xmlparse.c

index e740f0e19c7d4a1b7a36b46491a2157da334f408..09ccacb5aae596635b5233819357c8c066741b03 100644 (file)
 #  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>
 
 #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"