##// 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 12 #include <Python.h>
13 #include <stdint.h>
13 14 #include <stdlib.h>
14 15 #include <string.h>
15 16
@@ -23,13 +23,15 b''
23 23 #include <Python.h>
24 24 #include <stdlib.h>
25 25 #include <string.h>
26
26 27 #ifdef _WIN32
27 #ifdef _MSC_VER
28 #define inline __inline
28 # ifdef _MSC_VER
29 /* msvc 6.0 has problems */
30 # define inline __inline
29 31 typedef unsigned long uint32_t;
30 #else
31 #include <stdint.h>
32 #endif
32 # else
33 # include <stdint.h>
34 # endif
33 35 static uint32_t ntohl(uint32_t x)
34 36 {
35 37 return ((x & 0x000000ffUL) << 24) |
@@ -38,8 +40,10 b' static uint32_t ntohl(uint32_t x)'
38 40 ((x & 0xff000000UL) >> 24);
39 41 }
40 42 #else
41 #include <sys/types.h>
42 #include <arpa/inet.h>
43 /* not windows */
44 # include <sys/types.h>
45 # include <arpa/inet.h>
46 # include <stdint.h>
43 47 #endif
44 48
45 49 static char mpatch_doc[] = "Efficient binary patching.";
General Comments 0
You need to be logged in to leave comments. Login now