fixed htonll compile error on windows.
This commit is contained in:
parent
c8c877846a
commit
0995b3e0ec
|
|
@ -72,7 +72,7 @@
|
|||
#define be32toh(x) ntohl(x)
|
||||
#define le32toh(x) (x)
|
||||
|
||||
#define htobe64(x) htonll(x)
|
||||
#define htobe64(x) ((1==htonl(1)) ? (x) : ((uint64_t)htonl((x) & 0xFFFFFFFF) << 32) | htonl((x) >> 32))
|
||||
#define htole64(x) (x)
|
||||
#define be64toh(x) ntohll(x)
|
||||
#define le64toh(x) (x)
|
||||
|
|
|
|||
Loading…
Reference in New Issue