]> icculus.org git repositories - divverent/darkplaces.git/blob - qtypes.h
allow loading DXT2 and DXT4 dds files
[divverent/darkplaces.git] / qtypes.h
1
2 #ifndef QTYPES_H
3 #define QTYPES_H
4
5 #undef true
6 #undef false
7
8 #ifndef __cplusplus
9 typedef enum qboolean_e {false, true} qboolean;
10 #else
11 typedef bool qboolean;
12 #endif
13
14 #ifndef NULL
15 #define NULL ((void *)0)
16 #endif
17
18 #ifndef FALSE
19 #define FALSE false
20 #define TRUE true
21 #endif
22
23 // up / down
24 #define PITCH   0
25
26 // left / right
27 #define YAW             1
28
29 // fall over
30 #define ROLL    2
31
32 #if defined(__GNUC__) || (defined(_MSC_VER) && _MSC_VER >= 1400)
33 #define RESTRICT __restrict
34 #else
35 #define RESTRICT
36 #endif
37
38 #endif