]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - libs/bytebool.h
misc fixes
[xonotic/netradiant.git] / libs / bytebool.h
1 #ifndef __BYTEBOOL__
2 #define __BYTEBOOL__
3
4 // bool is a C++ type
5 // if we are compiling for C, use an enum
6
7 // this header is not really meant for direct inclusion,
8 // it is used by mathlib and cmdlib
9
10 #ifdef __cplusplus
11 typedef bool qboolean;
12 #define qtrue true
13 #define qfalse false
14 #else
15 typedef enum { qfalse, qtrue } qboolean;
16 #endif
17
18 typedef unsigned char byte;
19
20 #endif