Merge pull request #195 from Aleksandrius/master

Fixed MinGW compilation on Windows
This commit is contained in:
Emiel Bruijntjes 2018-10-27 12:52:52 +02:00 committed by GitHub
commit c0241cac67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@
#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 be64toh(x) ((1==ntohl(1)) ? (x) : ((uint64_t)ntohl((x) & 0xFFFFFFFF) << 32) | ntohl((x) >> 32))
#define le64toh(x) (x)
#elif BYTE_ORDER == BIG_ENDIAN