Show More
@@ -13,7 +13,12 b'' | |||||
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) | |
@@ -24,7 +24,12 b'' | |||||
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) | |
General Comments 0
You need to be logged in to leave comments.
Login now