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