summaryrefslogtreecommitdiffstats
path: root/Modules/expat/xmlparse.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-12-06 22:43:50 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-12-06 22:43:50 (GMT)
commitaa15276ee9554922919df1eb1a78826a102fb321 (patch)
tree731753860493211ee88b57c876260ee5069761f7 /Modules/expat/xmlparse.c
parent1a605ed5a33dbeec6b98d2a073fbbe3fcfdd84c0 (diff)
downloadcpython-aa15276ee9554922919df1eb1a78826a102fb321.zip
cpython-aa15276ee9554922919df1eb1a78826a102fb321.tar.gz
cpython-aa15276ee9554922919df1eb1a78826a102fb321.tar.bz2
Load expat_config.h and therefore pyconfig.h before C stdlib headers are loaded.
This silences the pre-processor warning '_POSIX_C_SOURCE redefined'.
Diffstat (limited to 'Modules/expat/xmlparse.c')
-rw-r--r--Modules/expat/xmlparse.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/expat/xmlparse.c b/Modules/expat/xmlparse.c
index f35aa36..0ac0317 100644
--- a/Modules/expat/xmlparse.c
+++ b/Modules/expat/xmlparse.c
@@ -2,12 +2,6 @@
See the file COPYING for copying permission.
*/
-#include <stddef.h>
-#include <string.h> /* memset(), memcpy() */
-#include <assert.h>
-#include <limits.h> /* UINT_MAX */
-#include <time.h> /* time() */
-
#define XML_BUILDING_EXPAT 1
#ifdef COMPILED_FROM_DSP
@@ -22,6 +16,12 @@
#include <expat_config.h>
#endif /* ndef COMPILED_FROM_DSP */
+#include <stddef.h>
+#include <string.h> /* memset(), memcpy() */
+#include <assert.h>
+#include <limits.h> /* UINT_MAX */
+#include <time.h> /* time() */
+
#include "ascii.h"
#include "expat.h"