summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/progs/duke3d/Engine/src/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl/progs/duke3d/Engine/src/platform.h')
-rw-r--r--apps/plugins/sdl/progs/duke3d/Engine/src/platform.h16
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
22uint16_t _swap16(uint16_t D); 14uint16_t _swap16(uint16_t D);
23unsigned int _swap32(unsigned int D); 15unsigned 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