Merge of master-melb:xfs-cmds:26188a by kenmcd.
/* 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
/* 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) : \