1 #ifndef __CUBE_H__
2 #define __CUBE_H__
3 
4 #define _FILE_OFFSET_BITS 64
5 
6 #ifdef __GNUC__
7 #define gamma __gamma
8 #endif
9 
10 #ifdef WIN32
11 #define _USE_MATH_DEFINES
12 #endif
13 #include <math.h>
14 
15 #ifdef __GNUC__
16 #undef gamma
17 #endif
18 
19 #include <string.h>
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <ctype.h>
23 #include <stdarg.h>
24 #include <limits.h>
25 #include <float.h>
26 #include <assert.h>
27 #include <time.h>
28 
29 #ifdef WIN32
30   #define WIN32_LEAN_AND_MEAN
31   #ifdef _WIN32_WINNT
32   #undef _WIN32_WINNT
33   #endif
34   #define _WIN32_WINNT 0x0500
35   #include "windows.h"
36   #ifndef _WINDOWS
37     #define _WINDOWS
38   #endif
39   #ifndef __GNUC__
40     #include <eh.h>
41     #include <dbghelp.h>
42   #endif
43   #define ZLIB_DLL
44 #endif
45 
46 #ifndef STANDALONE
47   #ifdef __APPLE__
48     #include "SDL2/SDL.h"
49     #include "SDL2/SDL_opengl.h"
50     #define main SDL_main
51   #else
52     #include <SDL.h>
53     #include <SDL_opengl.h>
54   #endif
55 #endif
56 
57 #include <enet/enet.h>
58 
59 #include <zlib.h>
60 
61 #include "tools.h"
62 #include "geom.h"
63 #include "ents.h"
64 #include "command.h"
65 
66 #ifndef STANDALONE
67 #include "glexts.h"
68 #include "glemu.h"
69 #endif
70 
71 #include "iengine.h"
72 #include "igame.h"
73 
74 #endif
75 
76