diff --git a/src/include/portable_endian.h b/src/include/portable_endian.h index 24da917..5cbfca7 100644 --- a/src/include/portable_endian.h +++ b/src/include/portable_endian.h @@ -13,7 +13,9 @@ # define le64toh(x) OSSwapLittleToHostInt64(x) #elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) # include -# define le64toh(x) letoh64(x) +# ifndef le64toh +# define le64toh(x) letoh64(x) +# endif #elif defined(__sun) && defined(__SVR4) # include # define htole64(x) LE_64(x)