comparison mercurial/osutil.c @ 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
comparison
equal deleted inserted replaced
5396:5105b119edd2 5397:11caa374f497
7 the GNU General Public License, incorporated herein by reference. 7 the GNU General Public License, incorporated herein by reference.
8 */ 8 */
9 9
10 #define _ATFILE_SOURCE 10 #define _ATFILE_SOURCE
11 #define _LARGEFILE64_SOURCE 11 #define _LARGEFILE64_SOURCE
12 #include <Python.h>
12 #include <alloca.h> 13 #include <alloca.h>
13 #include <dirent.h> 14 #include <dirent.h>
14 #include <fcntl.h> 15 #include <fcntl.h>
15 #include <string.h> 16 #include <string.h>
16 #include <sys/stat.h> 17 #include <sys/stat.h>
17 #include <sys/types.h> 18 #include <sys/types.h>
18 #include <unistd.h> 19 #include <unistd.h>
19
20 #include "Python.h"
21 20
22 struct listdir_stat { 21 struct listdir_stat {
23 PyObject_HEAD 22 PyObject_HEAD
24 struct stat st; 23 struct stat st;
25 }; 24 };