]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Add missing endian macros
authorRussell Cattelan <cattelan@sgi.com>
Mon, 7 Apr 2003 20:13:41 +0000 (20:13 +0000)
committerRussell Cattelan <cattelan@sgi.com>
Mon, 7 Apr 2003 20:13:41 +0000 (20:13 +0000)
Missed these the first time around. :-(

include/platform_defs.h.in

index f686f97a33ffc0cf25df7a89259449efcdf96e54..25fa6572b5acc442f3414dfd2891e198d53c3a05 100644 (file)
@@ -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 */