##// END OF EJS Templates
More fiddling with uint32_t includes for extensions...
mpm@selenic.com -
r510:7f3fc8fd default
parent child Browse files
Show More
@@ -13,6 +13,7 b''
13 13 #include <stdlib.h>
14 14 #include <string.h>
15 15 #ifdef _WIN32
16 #include <stdint.h>
16 17 static uint32_t htonl(uint32_t x)
17 18 {
18 19 return ((x & 0x000000ffUL) << 24) |
@@ -21,6 +22,7 b' static uint32_t htonl(uint32_t x)'
21 22 ((x & 0xff000000UL) >> 24);
22 23 }
23 24 #else
25 #include <sys/types.h>
24 26 #include <netinet/in.h>
25 27 #endif
26 28
@@ -24,6 +24,7 b''
24 24 #include <stdlib.h>
25 25 #include <string.h>
26 26 #ifdef _WIN32
27 #include <stdint.h>
27 28 static uint32_t ntohl(uint32_t x)
28 29 {
29 30 return ((x & 0x000000ffUL) << 24) |
@@ -32,6 +33,7 b' static uint32_t ntohl(uint32_t x)'
32 33 ((x & 0xff000000UL) >> 24);
33 34 }
34 35 #else
36 #include <sys/types.h>
35 37 #include <netinet/in.h>
36 38 #endif
37 39
General Comments 0
You need to be logged in to leave comments. Login now