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,13 +23,15 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 | |
28 | #define inline __inline |
|
29 | /* msvc 6.0 has problems */ | |
|
30 | # define inline __inline | |||
29 | typedef unsigned long uint32_t; |
|
31 | typedef unsigned long uint32_t; | |
30 | #else |
|
32 | # else | |
31 | #include <stdint.h> |
|
33 | # include <stdint.h> | |
32 | #endif |
|
34 | # endif | |
33 | static uint32_t ntohl(uint32_t x) |
|
35 | static uint32_t ntohl(uint32_t x) | |
34 | { |
|
36 | { | |
35 | return ((x & 0x000000ffUL) << 24) | |
|
37 | return ((x & 0x000000ffUL) << 24) | | |
@@ -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 | |
41 | #include <sys/types.h> |
|
43 | /* not windows */ | |
42 |
#include < |
|
44 | # include <sys/types.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