summaryrefslogtreecommitdiffstats
path: root/games/quake3-q3base/files/patch-src__game__q_shared.h
blob: 00ec0067d06444c1df1457fda6e2d0396e68671c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- ./src/game/q_shared.h.orig	Wed Oct  5 19:51:28 2005
+++ ./src/game/q_shared.h	Thu Jun 15 12:03:49 2006
@@ -140,7 +140,9 @@
 int	LongSwap (int l);
 float	FloatSwap (const float *f);
 
-#if defined (__i386__) || defined (__MIPSEL__) || defined (__amd64__)
+#include <machine/endian.h>
+
+#if BYTE_ORDER == LITTLE_ENDIAN
 /* Little Endian */
 #define BigShort ShortSwap
 #define LittleShort
@@ -148,7 +150,7 @@
 #define LittleLong
 #define BigFloat(l) FloatSwap(&l)
 #define LittleFloat
-#elif defined (__mips__) || defined (__ppc__) || defined (__sparc__)
+#elif BYTE_ORDER == BIG_ENDIAN
 /* Big Endian */
 #define BigShort
 #define LittleShort ShortSwap
@@ -199,7 +201,7 @@
 #elif defined (__axp__)
 #define CPUSTRING	"alpha"
 #else
-#error	"Unknown processor family"
+#define CPUSTRING	"unknown"
 #endif
 
 /*
OpenPOWER on IntegriCloud