]> icculus.org git repositories - divverent/darkplaces.git/blob - qtypes.h
fix a float->enum conversion error with g++ 4
[divverent/darkplaces.git] / qtypes.h
1
2 #ifndef QTYPES_H
3 #define QTYPES_H
4
5 typedef unsigned char qbyte;
6
7 #undef true
8 #undef false
9
10 #ifndef __cplusplus
11 typedef enum {false, true} qboolean;
12 #else
13 typedef bool qboolean;
14 #endif
15
16 #if defined(WIN32) && !defined(WIN64)
17 # define ssize_t long
18 #endif
19
20 #ifndef NULL
21 #define NULL ((void *)0)
22 #endif
23
24 #ifndef FALSE
25 #define FALSE false
26 #define TRUE true
27 #endif
28
29 // up / down
30 #define PITCH   0
31
32 // left / right
33 #define YAW             1
34
35 // fall over
36 #define ROLL    2
37
38 #endif