projects
/
divverent
/
darkplaces.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
shut up a gcc warning
[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