Browse Source

Don't redefine le64toh on modern FreeBSD, NetBSD, and DragonflyBSD.

master
Andrew Bennett 8 years ago
parent
commit
80c0bd5d7d
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/include/portable_endian.h

+ 3
- 1
src/include/portable_endian.h View File

@@ -13,7 +13,9 @@
# define le64toh(x) OSSwapLittleToHostInt64(x)
#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
# include <sys/endian.h>
# define le64toh(x) letoh64(x)
# ifndef le64toh
# define le64toh(x) letoh64(x)
# endif
#elif defined(__sun) && defined(__SVR4)
# include <sys/byteorder.h>
# define htole64(x) LE_64(x)


Loading…
Cancel
Save