diff options
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 | ||