Ugh, didn't notice that committing this change failed days ago. Wasn't a

problem, since only the copies of gcc headers in the haiku module are
used.

BeOS/Haiku requires sizeof(bool) to be 1.


git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@24512 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-03-21 23:40:50 +00:00
parent c063cadd81
commit eb680fdd74

View File

@@ -2,6 +2,13 @@
#ifndef __STDBOOL_H__
#define __STDBOOL_H__ 1
#ifdef __BEOS__
typedef unsigned char _Bool;
#define bool _Bool
#define false 0
#define true 1
#else
/* The type `bool' must promote to `int' or `unsigned int'. The constants
`true' and `false' must have the value 0 and 1 respectively. */
typedef enum
@@ -14,6 +21,8 @@ typedef enum
#define false false
#define true true
#endif
/* Signal that all the definitions are present. */
#define __bool_true_false_are_defined 1