Browse Source

fixed MinGW compile (#830)

pull/832/head
Logan oos Even 3 years ago
committed by GitHub
parent
commit
16d248d921
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      include/portable_endian.h

4
include/portable_endian.h

@ -135,8 +135,8 @@
# define be32toh(x) _byteswap_ulong(x)
# define le32toh(x) (x)
# define htobe64(x) _byteswap_uint64(x)
# define be64toh(x) _byteswap_uint64(x)
# define htobe64(x) (((uint64_t)htonl(((uint32_t)(((uint64_t)(x)) >> 32))) & 0x00000000FFFFFFFFULL) | (((uint64_t)htonl(((uint32_t)(x)))) << 32))
# define be64toh(x) (((uint64_t)htonl(((uint32_t)(((uint64_t)(x)) >> 32))) & 0x00000000FFFFFFFFULL) | (((uint64_t)htonl(((uint32_t)(x)))) << 32))
# define htole64(x) (x)
# define le64toh(x) (x)

Loading…
Cancel
Save