Include Python.h earlier
authorJohan Dahlin <johan@gnome.org>
Thu, 31 Dec 2009 14:26:33 +0000 (15:26 +0100)
committerJohan Dahlin <johan@gnome.org>
Thu, 31 Dec 2009 14:26:33 +0000 (15:26 +0100)
This avoids pyconfig.h:1028:1: warning: "_POSIX_C_SOURCE" redefined

giscanner/giscannermodule.c

index e8ad117..0b24714 100644 (file)
@@ -22,9 +22,9 @@
 #ifdef HAVE_CONFIG_H
 #  include "config.h"
 #endif
+#include <Python.h>
 #include "sourcescanner.h"
 #include "grealpath.h"
-#include <Python.h>
 
 #ifdef _WIN32
 #include <fcntl.h>