summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/progs/duke3d/Game/src/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl/progs/duke3d/Game/src/global.h')
-rw-r--r--apps/plugins/sdl/progs/duke3d/Game/src/global.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/apps/plugins/sdl/progs/duke3d/Game/src/global.h b/apps/plugins/sdl/progs/duke3d/Game/src/global.h
index e0be16f500..ab7d6eb634 100644
--- a/apps/plugins/sdl/progs/duke3d/Game/src/global.h
+++ b/apps/plugins/sdl/progs/duke3d/Game/src/global.h
@@ -18,23 +18,11 @@ int FindDistance3D(int ix, int iy, int iz);
18void Shutdown(void); 18void Shutdown(void);
19 19
20#ifndef LITTLE_ENDIAN 20#ifndef LITTLE_ENDIAN
21 #ifdef __APPLE__ 21 #define LITTLE_ENDIAN 1234
22 #else
23 #define LITTLE_ENDIAN 1234
24 #endif
25#endif 22#endif
26 23
27#ifndef BIG_ENDIAN 24#ifndef BIG_ENDIAN
28 #ifdef __APPLE__ 25 #define BIG_ENDIAN 4321
29 #else
30 #define BIG_ENDIAN 4321
31 #endif
32#endif
33
34#if PLATFORM_WIN32
35#ifndef BYTE_ORDER
36#define BYTE_ORDER LITTLE_ENDIAN
37#endif
38#endif 26#endif
39 27
40#ifdef ROCKBOX 28#ifdef ROCKBOX
@@ -45,15 +33,6 @@ void Shutdown(void);
45#endif 33#endif
46#endif 34#endif
47 35
48#ifdef __APPLE__
49#if __powerpc__
50#define BYTE_ORDER BIG_ENDIAN
51#else
52// Defined in endian.h
53// #define BYTE_ORDER LITTLE_ENDIAN
54#endif
55#endif
56
57#ifndef BYTE_ORDER 36#ifndef BYTE_ORDER
58#error Please define your platform. 37#error Please define your platform.
59#endif 38#endif