summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/progs/duke3d/Engine/src/unix_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl/progs/duke3d/Engine/src/unix_compat.h')
-rw-r--r--apps/plugins/sdl/progs/duke3d/Engine/src/unix_compat.h67
1 files changed, 0 insertions, 67 deletions
diff --git a/apps/plugins/sdl/progs/duke3d/Engine/src/unix_compat.h b/apps/plugins/sdl/progs/duke3d/Engine/src/unix_compat.h
deleted file mode 100644
index 811e99ea08..0000000000
--- a/apps/plugins/sdl/progs/duke3d/Engine/src/unix_compat.h
+++ /dev/null
@@ -1,67 +0,0 @@
1//
2// unix_compat.h
3// Duke3D
4//
5// Based on macos_compat.h
6// Copyright Wed, Jul 31, 2013, Juan Manuel Borges CaƱo (GPLv3+)
7//
8
9#ifndef Duke3D_unix_compat_h
10#define Duke3D_unix_compat_h
11
12//#define BYTE_ORDER LITTLE_ENDIAN
13#define PLATFORM_SUPPORTS_SDL
14
15#include <stdlib.h>
16
17#define kmalloc(x) malloc(x)
18#define kkmalloc(x) malloc(x)
19#define kfree(x) free(x)
20#define kkfree(x) free(x)
21
22#ifdef FP_OFF
23#undef FP_OFF
24#endif
25
26// Horrible horrible macro: Watcom allowed memory pointer to be cast
27// to a 32bits integer. The code is unfortunately stuffed with this :( !
28#define FP_OFF(x) ((int32_t) (x))
29
30#ifndef max
31#define max(x, y) (((x) > (y)) ? (x) : (y))
32#endif
33
34#ifndef min
35#define min(x, y) (((x) < (y)) ? (x) : (y))
36#endif
37
38#include <inttypes.h>
39#define __int64 int64_t
40
41#define O_BINARY 0
42
43#define UDP_NETWORKING 1
44
45#define PLATFORM_UNIX 1
46
47/*
48#define SOL_IP SOL_SOCKET
49#define IP_RECVERR SO_BROADCAST
50*/
51
52#define stricmp strcasecmp
53#define strcmpi strcasecmp
54
55#define S_IREAD S_IRUSR
56#include <assert.h>
57#include <sys/types.h>
58#include <sys/stat.h>
59#include <sys/uio.h>
60#include <unistd.h>
61#include <fcntl.h>
62#include <dirent.h>
63#include <string.h>
64
65#define USER_DUMMY_NETWORK 1
66
67#endif