Removed the __arch__swabX macros; Linux kernel headers aren't reliable.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 23 Mar 2009 00:13:08 -0400
changeset 953 ef9df9d27596
parent 952 bbe76b085d4d
child 954 7f59a79739ba
Removed the __arch__swabX macros; Linux kernel headers aren't reliable.
physfs_byteorder.c
--- a/physfs_byteorder.c	Mon Mar 23 00:12:03 2009 -0400
+++ b/physfs_byteorder.c	Mon Mar 23 00:13:08 2009 -0400
@@ -14,18 +14,6 @@
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 
-/* The macros used to swap values */
-/* Try to use superfast macros on systems that support them */
-#ifdef linux
-#include <asm/byteorder.h>
-#ifdef __arch__swab16
-#define PHYSFS_Swap16  __arch__swab16
-#endif
-#ifdef __arch__swab32
-#define PHYSFS_Swap32  __arch__swab32
-#endif
-#endif /* linux */
-
 #if (defined macintosh) && !(defined __MWERKS__)
 #define __inline__
 #endif