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/Engine/src/platform.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/Engine/src/platform.h')
-rw-r--r-- | apps/plugins/sdl/progs/duke3d/Engine/src/platform.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/apps/plugins/sdl/progs/duke3d/Engine/src/platform.h b/apps/plugins/sdl/progs/duke3d/Engine/src/platform.h index a8cfe1843e..6d91d25530 100644 --- a/apps/plugins/sdl/progs/duke3d/Engine/src/platform.h +++ b/apps/plugins/sdl/progs/duke3d/Engine/src/platform.h | |||
@@ -1,15 +1,7 @@ | |||
1 | #ifndef _INCLUDE_PLATFORM_DUKE_H_ | 1 | #ifndef _INCLUDE_PLATFORM_DUKE_H_ |
2 | #define _INCLUDE_PLATFORM_DUKE_H_ | 2 | #define _INCLUDE_PLATFORM_DUKE_H_ |
3 | 3 | ||
4 | #if (defined PLATFORM_WIN32) | 4 | #if (defined ROCKBOX) |
5 | #include "win32_compat.h" | ||
6 | #elif (defined PLATFORM_UNIX) | ||
7 | #include "unix_compat.h" | ||
8 | #elif (defined PLATFORM_DOS) | ||
9 | #include "doscmpat.h" | ||
10 | #elif (defined __APPLE__) | ||
11 | #include "macos_compat.h" | ||
12 | #elif (defined ROCKBOX) | ||
13 | #include "rockbox_compat.h" | 5 | #include "rockbox_compat.h" |
14 | #else | 6 | #else |
15 | #error Define your platform! | 7 | #error Define your platform! |
@@ -21,15 +13,9 @@ | |||
21 | 13 | ||
22 | uint16_t _swap16(uint16_t D); | 14 | uint16_t _swap16(uint16_t D); |
23 | unsigned int _swap32(unsigned int D); | 15 | unsigned int _swap32(unsigned int D); |
24 | #if defined(PLATFORM_MACOSX) && defined(__ppc__) | ||
25 | #define PLATFORM_BIGENDIAN 1 | ||
26 | #define BUILDSWAP_INTEL16(x) _swap16(x) | ||
27 | #define BUILDSWAP_INTEL32(x) _swap32(x) | ||
28 | #else | ||
29 | #define PLATFORM_LITTLEENDIAN 1 | 16 | #define PLATFORM_LITTLEENDIAN 1 |
30 | #define BUILDSWAP_INTEL16(x) (x) | 17 | #define BUILDSWAP_INTEL16(x) (x) |
31 | #define BUILDSWAP_INTEL32(x) (x) | 18 | #define BUILDSWAP_INTEL32(x) (x) |
32 | #endif | ||
33 | 19 | ||
34 | #endif /* !defined _INCLUDE_PLATFORM_H_ */ | 20 | #endif /* !defined _INCLUDE_PLATFORM_H_ */ |
35 | 21 | ||