##// END OF EJS Templates
mac os x: fixes for 10.2 from chris monson <monpublic@gmail.com>
Vadim Gelfer -
r2468:1ac0574f default
parent child Browse files
Show More
@@ -10,6 +10,7 b''
10 */
10 */
11
11
12 #include <Python.h>
12 #include <Python.h>
13 #include <stdint.h>
13 #include <stdlib.h>
14 #include <stdlib.h>
14 #include <string.h>
15 #include <string.h>
15
16
@@ -23,8 +23,10 b''
23 #include <Python.h>
23 #include <Python.h>
24 #include <stdlib.h>
24 #include <stdlib.h>
25 #include <string.h>
25 #include <string.h>
26
26 #ifdef _WIN32
27 #ifdef _WIN32
27 #ifdef _MSC_VER
28 # ifdef _MSC_VER
29 /* msvc 6.0 has problems */
28 #define inline __inline
30 # define inline __inline
29 typedef unsigned long uint32_t;
31 typedef unsigned long uint32_t;
30 #else
32 # else
@@ -38,8 +40,10 b' static uint32_t ntohl(uint32_t x)'
38 ((x & 0xff000000UL) >> 24);
40 ((x & 0xff000000UL) >> 24);
39 }
41 }
40 #else
42 #else
43 /* not windows */
41 #include <sys/types.h>
44 # include <sys/types.h>
42 #include <arpa/inet.h>
45 # include <arpa/inet.h>
46 # include <stdint.h>
43 #endif
47 #endif
44
48
45 static char mpatch_doc[] = "Efficient binary patching.";
49 static char mpatch_doc[] = "Efficient binary patching.";
General Comments 0
You need to be logged in to leave comments. Login now