changeset 5397:11caa374f497

osutil.c: include Python.h before the other headers This is recommended by the Python documentation, since Python.h defines some constants.
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Sat, 06 Oct 2007 14:14:11 -0300
parents 5105b119edd2
children ecde0b7e0b3f
files mercurial/osutil.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;