diff --git a/tools/include/endian.h b/tools/include/endian.h index bba70abd83..e2ac755667 100644 --- a/tools/include/endian.h +++ b/tools/include/endian.h @@ -5,11 +5,11 @@ #include #include_next #elif defined(__APPLE__) -#include -#include -#define bswap_16(x) NXSwapShort(x) -#define bswap_32(x) NXSwapInt(x) -#define bswap_64(x) NXSwapLongLong(x) +#include +#include +#define bswap_16(x) OSSwapInt16(x) +#define bswap_32(x) OSSwapInt32(x) +#define bswap_64(x) OSSwapInt64(x) #elif defined(__FreeBSD__) #include #define bswap_16(x) bswap16(x)