xref: /haiku/headers/build/gcc-2.95.3/stdbool.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /* stdbool.h for GNU.  */
2 #ifndef __STDBOOL_H__
3 #define __STDBOOL_H__	1
4 
5 #if defined(__BEOS__) || defined(__HAIKU__)
6 	typedef unsigned char _Bool;
7 	#define bool _Bool
8 	#define false 0
9 	#define true 1
10 #else
11 
12 /* The type `bool' must promote to `int' or `unsigned int'.  The constants
13    `true' and `false' must have the value 0 and 1 respectively.  */
14 typedef enum
15   {
16     false = 0,
17     true = 1
18   } bool;
19 
20 /* The names `true' and `false' must also be made available as macros.  */
21 #define false	false
22 #define true	true
23 
24 #endif
25 
26 /* Signal that all the definitions are present.  */
27 #define __bool_true_false_are_defined	1
28 
29 #endif	/* stdbool.h */
30