]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Load expat_config.h and therefore pyconfig.h before C stdlib headers are loaded.
authorChristian Heimes <christian@cheimes.de>
Fri, 6 Dec 2013 22:43:50 +0000 (23:43 +0100)
committerChristian Heimes <christian@cheimes.de>
Fri, 6 Dec 2013 22:43:50 +0000 (23:43 +0100)
This silences the pre-processor warning '_POSIX_C_SOURCE redefined'.

Modules/expat/xmlparse.c
Modules/expat/xmlrole.c
Modules/expat/xmltok.c

index f35aa36ba8a7fce3bae90f31b20354435b15d2f2..0ac0317b8e142e69cc6f5678de2d31ab2f09352c 100644 (file)
@@ -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
 #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"
 
index 44772e21dd337b00e3fc53b1626721672ab08102..9a8f85dd2535e75c739fa1dfb8f8dc897ec34cf5 100644 (file)
@@ -2,8 +2,6 @@
    See the file COPYING for copying permission.
 */
 
-#include <stddef.h>
-
 #ifdef COMPILED_FROM_DSP
 #include "winconfig.h"
 #elif defined(MACOS_CLASSIC)
@@ -18,6 +16,8 @@
 #endif
 #endif /* ndef COMPILED_FROM_DSP */
 
+#include <stddef.h>
+
 #include "expat_external.h"
 #include "internal.h"
 #include "xmlrole.h"
index b9cd7a451300cb6678bccf89dc4f9aa803c5949a..fd6bf7a3d18dab9a1c70e5cdefe073c327b59be0 100644 (file)
@@ -2,8 +2,6 @@
    See the file COPYING for copying permission.
 */
 
-#include <stddef.h>
-
 #ifdef COMPILED_FROM_DSP
 #include "winconfig.h"
 #elif defined(MACOS_CLASSIC)
@@ -18,6 +16,8 @@
 #endif
 #endif /* ndef COMPILED_FROM_DSP */
 
+#include <stddef.h>
+
 #include "expat_external.h"
 #include "internal.h"
 #include "xmltok.h"