]> granicus.if.org Git - python/commitdiff
Include Python.h first which defines _XOPEN_SOURCE
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 22 Mar 2003 16:35:37 +0000 (16:35 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 22 Mar 2003 16:35:37 +0000 (16:35 +0000)
which allows the file to compile and removes a warning about _XOPEN_SOURCE
being redefined (works on AIX 4.3 and 5.1 at least).

Python/dynload_aix.c

index fd380aed0efc4c039fe576d3d63d85721b28ce22..03ecc0724ae39bd9a696e291efc4b1615aa7c43c 100644 (file)
@@ -1,15 +1,15 @@
 
 /* Support for dynamic loading of extension modules */
 
+#include "Python.h"
+#include "importdl.h"
+
 #include <ctype.h>     /*  for isdigit()         */
 #include <errno.h>     /*  for global errno      */
 #include <string.h>    /*  for strerror()        */
 #include <stdlib.h>    /*  for malloc(), free()  */
 #include <sys/ldr.h>
 
-#include "Python.h"
-#include "importdl.h"
-
 
 #ifdef AIX_GENUINE_CPLUSPLUS
 #include "/usr/lpp/xlC/include/load.h"