]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Back out removal of HAVE_SWABMACROS for now - IRIX builds still need it atm.
authorNathan Scott <nathans@sgi.com>
Wed, 7 Jun 2006 04:28:06 +0000 (04:28 +0000)
committerNathan Scott <nathans@sgi.com>
Wed, 7 Jun 2006 04:28:06 +0000 (04:28 +0000)
Merge of master-melb:xfs-cmds:26188a by kenmcd.

include/irix.h
include/xfs_arch.h

index 882f241a8fffb42e1309032215223ed25f034000..852b484fcca82204a3d1310740837dcb2bda7073 100644 (file)
@@ -128,6 +128,10 @@ typedef struct xfs_fsop_attrmulti_handlereq {
 
 /* Map some gcc macros for the MipsPRO compiler */
 #ifndef __GNUC__
+#define INT_SWAP16(type,var)   (var)
+#define INT_SWAP32(type,var)   (var)
+#define INT_SWAP64(type,var)   (var)
+#define HAVE_SWABMACROS                1 /* no typeof available */
 #define __builtin_constant_p(x)        (0)
 #define __FUNCTION__   "XFS"
 #define __sgi__                __sgi
index b16825b9143632665f96f7b5e710de88e939f8ee..7be1fb68fdcfa0ee62b5a914df7a974b671bb98c 100644 (file)
 
 /* generic swapping macros */
 
+#ifndef HAVE_SWABMACROS
 #define INT_SWAP16(type,var) ((typeof(type))(__swab16((__u16)(var))))
 #define INT_SWAP32(type,var) ((typeof(type))(__swab32((__u32)(var))))
 #define INT_SWAP64(type,var) ((typeof(type))(__swab64((__u64)(var))))
+#endif
 
 #define INT_SWAP(type, var) \
     ((sizeof(type) == 8) ? INT_SWAP64(type,var) : \