From 8687c8f96e4d167732548b16675c5c27b488f95e Mon Sep 17 00:00:00 2001 From: macrule <562520+macrule@users.noreply.github.com> Date: Wed, 29 Nov 2017 18:18:53 +0100 Subject: [PATCH] On FreeBSD bswap_*() macros are now correctly mapped to the BSD bswap*() calls. --- src/tvh_endian.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tvh_endian.h b/src/tvh_endian.h index 8e4389a87..c30638f63 100644 --- a/src/tvh_endian.h +++ b/src/tvh_endian.h @@ -24,8 +24,10 @@ #define bswap_32(x) _OSSwapInt32(x) #define bswap_64(x) _OSSwapInt64(x) #elif defined(PLATFORM_FREEBSD) -#include #include +#define bswap_16(x) bswap16(x) +#define bswap_32(x) bswap32(x) +#define bswap_64(x) bswap64(x) #else #include #include -- 2.47.3