osutil.c: include Python.h before the other headers
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 06 Oct 2007 14:14:11 -0300
changeset 5397 11caa374f497
parent 5396 5105b119edd2
child 5398 ecde0b7e0b3f
osutil.c: include Python.h before the other headers This is recommended by the Python documentation, since Python.h defines some constants.
mercurial/osutil.c
--- a/mercurial/osutil.c	Fri Oct 05 15:01:06 2007 -0700
+++ b/mercurial/osutil.c	Sat Oct 06 14:14:11 2007 -0300
@@ -9,6 +9,7 @@
 
 #define _ATFILE_SOURCE
 #define _LARGEFILE64_SOURCE
+#include <Python.h>
 #include <alloca.h>
 #include <dirent.h>
 #include <fcntl.h>
@@ -17,8 +18,6 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-#include "Python.h"
-
 struct listdir_stat {
     PyObject_HEAD
     struct stat st;