]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/ddslib/ddslib.c
Centralise compile checks
[xonotic/netradiant.git] / libs / ddslib / ddslib.c
index 26ccf2e9f6a648b173c10d57de2c9e3b5a02bd77..15dbef80a25172fe9d28b5dfae800dc1fb128dd8 100644 (file)
@@ -37,8 +37,7 @@
 
 /* dependencies */
 #include "ddslib.h"
-
-
+#include "globaldefs.h"
 
 /* endian tomfoolery */
 typedef union
@@ -48,15 +47,7 @@ typedef union
 }
 floatSwapUnion;
 
-
-#ifndef __BIG_ENDIAN__
-       #ifdef _SGI_SOURCE
-               #define __BIG_ENDIAN__
-       #endif
-#endif
-
-
-#ifdef __BIG_ENDIAN__
+#if GDEF_ARCH_ENDIAN_BIG
 
 int   DDSBigLong( int src ) { return src; }
 short DDSBigShort( short src ) { return src; }