equal
deleted
inserted
replaced
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 #ifdef _WIN32 |
15 #ifdef _WIN32 |
|
16 #ifdef _MSC_VER |
|
17 #define inline __inline |
|
18 typedef unsigned long uint32_t; |
|
19 #else |
16 #include <stdint.h> |
20 #include <stdint.h> |
|
21 #endif |
17 static uint32_t htonl(uint32_t x) |
22 static uint32_t htonl(uint32_t x) |
18 { |
23 { |
19 return ((x & 0x000000ffUL) << 24) | |
24 return ((x & 0x000000ffUL) << 24) | |
20 ((x & 0x0000ff00UL) << 8) | |
25 ((x & 0x0000ff00UL) << 8) | |
21 ((x & 0x00ff0000UL) >> 8) | |
26 ((x & 0x00ff0000UL) >> 8) | |