fixed htonll compile error on windows.

This commit is contained in:
Aart Stuurman 2018-01-29 17:12:06 +01:00
parent c8c877846a
commit 0995b3e0ec
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@
#define be32toh(x) ntohl(x) #define be32toh(x) ntohl(x)
#define le32toh(x) (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 htole64(x) (x)
#define be64toh(x) ntohll(x) #define be64toh(x) ntohll(x)
#define le64toh(x) (x) #define le64toh(x) (x)