From 408df2f04a1ec40c0a76fec23dc755e3e96a3b54 Mon Sep 17 00:00:00 2001 From: Russell Cattelan Date: Mon, 7 Apr 2003 20:13:41 +0000 Subject: [PATCH] Add missing endian macros Missed these the first time around. :-( --- include/platform_defs.h.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/platform_defs.h.in b/include/platform_defs.h.in index f686f97a3..25fa6572b 100644 --- a/include/platform_defs.h.in +++ b/include/platform_defs.h.in @@ -151,6 +151,9 @@ typedef enum { B_FALSE,B_TRUE } boolean_t; #define HAVE_FID 1 #define HAVE_SWABMACROS 1 +#define INT_SWAP16(type,var) ((typeof(type))(__bswap16((__u16)(var)))) +#define INT_SWAP32(type,var) ((typeof(type))(__bswap32((__u32)(var)))) +#define INT_SWAP64(type,var) ((typeof(type))(__bswap64((__u64)(var)))) #elif defined(__APPLE__) /* Darwin */ -- 2.47.2