Procházet zdrojové kódy

Moved byte order defines into internal header.

Ryan C. Gordon před 22 roky
rodič
revize
bb09a88a67
2 změnil soubory, kde provedl 17 přidání a 17 odebrání
  1. 0 17
      physfs_byteorder.c
  2. 17 0
      physfs_internal.h

+ 0 - 17
physfs_byteorder.c

@@ -18,23 +18,6 @@
 #define __PHYSICSFS_INTERNAL__
 #define __PHYSICSFS_INTERNAL__
 #include "physfs_internal.h"
 #include "physfs_internal.h"
 
 
-/* This byteorder stuff was lifted from SDL. http://www.libsdl.org/ */
-#define PHYSFS_LIL_ENDIAN  1234
-#define PHYSFS_BIG_ENDIAN  4321
-
-#if  defined(__i386__) || defined(__ia64__) || defined(WIN32) || \
-    (defined(__alpha__) || defined(__alpha)) || \
-     defined(__arm__) || defined(ARM) || \
-    (defined(__mips__) && defined(__MIPSEL__)) || \
-     defined(__SYMBIAN32__) || \
-     defined(__x86_64__) || \
-     defined(__LITTLE_ENDIAN__)
-#define PHYSFS_BYTEORDER    PHYSFS_LIL_ENDIAN
-#else
-#define PHYSFS_BYTEORDER    PHYSFS_BIG_ENDIAN
-#endif
-
-
 /* The macros used to swap values */
 /* The macros used to swap values */
 /* Try to use superfast macros on systems that support them */
 /* Try to use superfast macros on systems that support them */
 #ifdef linux
 #ifdef linux

+ 17 - 0
physfs_internal.h

@@ -1149,6 +1149,23 @@ LinkedStringList *__PHYSFS_addToLinkedStringList(LinkedStringList *retval,
                                                  PHYSFS_sint32 len);
                                                  PHYSFS_sint32 len);
 
 
 
 
+/* This byteorder stuff was lifted from SDL. http://www.libsdl.org/ */
+#define PHYSFS_LIL_ENDIAN  1234
+#define PHYSFS_BIG_ENDIAN  4321
+
+#if  defined(__i386__) || defined(__ia64__) || defined(WIN32) || \
+    (defined(__alpha__) || defined(__alpha)) || \
+     defined(__arm__) || defined(ARM) || \
+    (defined(__mips__) && defined(__MIPSEL__)) || \
+     defined(__SYMBIAN32__) || \
+     defined(__x86_64__) || \
+     defined(__LITTLE_ENDIAN__)
+#define PHYSFS_BYTEORDER    PHYSFS_LIL_ENDIAN
+#else
+#define PHYSFS_BYTEORDER    PHYSFS_BIG_ENDIAN
+#endif
+
+
 /*
 /*
  * When sorting the entries in an archive, we use a modified QuickSort.
  * When sorting the entries in an archive, we use a modified QuickSort.
  *  When there are less then PHYSFS_QUICKSORT_THRESHOLD entries left to sort,
  *  When there are less then PHYSFS_QUICKSORT_THRESHOLD entries left to sort,