From: Russell Cattelan Date: Mon, 7 Apr 2003 20:13:41 +0000 (+0000) Subject: Add missing endian macros X-Git-Tag: XFS-1_3_0pre1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=408df2f04a1ec40c0a76fec23dc755e3e96a3b54;p=thirdparty%2Fxfsprogs-dev.git Add missing endian macros Missed these the first time around. :-( --- 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 */