equal
deleted
inserted
replaced
22 |
22 |
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 #ifdef _WIN32 |
26 #ifdef _WIN32 |
|
27 #ifdef _MSC_VER |
|
28 #define inline __inline |
|
29 typedef unsigned long uint32_t; |
|
30 #else |
27 #include <stdint.h> |
31 #include <stdint.h> |
|
32 #endif |
28 static uint32_t ntohl(uint32_t x) |
33 static uint32_t ntohl(uint32_t x) |
29 { |
34 { |
30 return ((x & 0x000000ffUL) << 24) | |
35 return ((x & 0x000000ffUL) << 24) | |
31 ((x & 0x0000ff00UL) << 8) | |
36 ((x & 0x0000ff00UL) << 8) | |
32 ((x & 0x00ff0000UL) >> 8) | |
37 ((x & 0x00ff0000UL) >> 8) | |