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/macos_compat.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/macos_compat.h')
-rw-r--r-- | apps/plugins/sdl/progs/duke3d/Engine/src/macos_compat.h | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/apps/plugins/sdl/progs/duke3d/Engine/src/macos_compat.h b/apps/plugins/sdl/progs/duke3d/Engine/src/macos_compat.h deleted file mode 100644 index 7eb205daa6..0000000000 --- a/apps/plugins/sdl/progs/duke3d/Engine/src/macos_compat.h +++ /dev/null | |||
@@ -1,62 +0,0 @@ | |||
1 | // | ||
2 | // macos_compat.h | ||
3 | // Duke3D | ||
4 | // | ||
5 | // Created by fabien sanglard on 12-12-12. | ||
6 | // Copyright (c) 2012 fabien sanglard. All rights reserved. | ||
7 | // | ||
8 | |||
9 | #ifndef Duke3D_macos_compat_h | ||
10 | #define Duke3D_macos_compat_h | ||
11 | |||
12 | #define PLATFORM_SUPPORTS_SDL | ||
13 | |||
14 | #include <stdlib.h> | ||
15 | |||
16 | #define kmalloc(x) malloc(x) | ||
17 | #define kkmalloc(x) malloc(x) | ||
18 | #define kfree(x) free(x) | ||
19 | #define kkfree(x) free(x) | ||
20 | |||
21 | #ifdef FP_OFF | ||
22 | #undef FP_OFF | ||
23 | #endif | ||
24 | |||
25 | // Horrible horrible macro: Watcom allowed memory pointer to be cast | ||
26 | // to a 32bits integer. The code is unfortunately stuffed with this :( ! | ||
27 | #define FP_OFF(x) ((int32_t) (x)) | ||
28 | |||
29 | #ifndef max | ||
30 | #define max(x, y) (((x) > (y)) ? (x) : (y)) | ||
31 | #endif | ||
32 | |||
33 | #ifndef min | ||
34 | #define min(x, y) (((x) < (y)) ? (x) : (y)) | ||
35 | #endif | ||
36 | |||
37 | #include <inttypes.h> | ||
38 | #define __int64 int64_t | ||
39 | |||
40 | #define O_BINARY 0 | ||
41 | |||
42 | #define UDP_NETWORKING 1 | ||
43 | |||
44 | #define PLATFORM_MACOSX 1 | ||
45 | |||
46 | #define SOL_IP SOL_SOCKET | ||
47 | #define IP_RECVERR SO_BROADCAST | ||
48 | |||
49 | #define stricmp strcasecmp | ||
50 | #define strcmpi strcasecmp | ||
51 | |||
52 | #include <assert.h> | ||
53 | #include <sys/stat.h> | ||
54 | #include <sys/types.h> | ||
55 | #include <sys/uio.h> | ||
56 | #include <unistd.h> | ||
57 | #include <fcntl.h> | ||
58 | #include <string.h> | ||
59 | |||
60 | #define USER_DUMMY_NETWORK 1 | ||
61 | |||
62 | #endif | ||