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