diff options
author | Vencislav Atanasov <user890104@freemyipod.org> | 2019-07-28 23:31:50 +0300 |
---|---|---|
committer | Vencislav Atanasov <user890104@freemyipod.org> | 2019-07-29 01:59:40 +0300 |
commit | 183e45e8d0b4425bbd41fab37f2a4dc143e1e27c (patch) | |
tree | 5e25c211f6a3bd46dc594123451af00c1bf7ef9c /apps/plugins/sdl/progs/duke3d/Game/src/global.h | |
parent | e19857e712ff54cec08d5a6342a32dae2788cb50 (diff) | |
download | rockbox-183e45e8d0b4425bbd41fab37f2a4dc143e1e27c.tar.gz rockbox-183e45e8d0b4425bbd41fab37f2a4dc143e1e27c.zip |
sdl: Remove platform-specific code
Also nuke the Makefiles of Duke Nukem 3D (pun intended).
Change-Id: If2707cf079bfb9299347f9c5f980780134b6ecda
Diffstat (limited to 'apps/plugins/sdl/progs/duke3d/Game/src/global.h')
-rw-r--r-- | apps/plugins/sdl/progs/duke3d/Game/src/global.h | 25 |
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); | |||
18 | void Shutdown(void); | 18 | void 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 |