changeset 486 | 098d1f039c18 |
parent 484 | 934279f3ca53 |
child 495 | e94cebc60d96 |
485:c5705ab9cebd | 486:098d1f039c18 |
---|---|
10 */ |
10 */ |
11 |
11 |
12 #include <Python.h> |
12 #include <Python.h> |
13 #include <stdlib.h> |
13 #include <stdlib.h> |
14 #include <string.h> |
14 #include <string.h> |
15 #include <stdint.h> |
|
16 #ifdef _WIN32 |
15 #ifdef _WIN32 |
17 static uint32_t htonl(uint32_t x) |
16 static uint32_t htonl(uint32_t x) |
18 { |
17 { |
19 return ((x & 0x000000ffUL) << 24) | |
18 return ((x & 0x000000ffUL) << 24) | |
20 ((x & 0x0000ff00UL) << 8) | |
19 ((x & 0x0000ff00UL) << 8) | |