GCC 3 conforms to ISO-C-99 so _Bool is a built-in type; we should not try to redefine it.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12372 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
92ec9b2fbc
commit
29b949de52
@ -8,9 +8,10 @@
|
||||
#ifndef __bool_true_false_are_defined
|
||||
|
||||
#ifndef __cplusplus
|
||||
//typedef enum { false = 0, true = 1 } _Bool;
|
||||
// ToDo: this would change the bool size compared to standard BeOS
|
||||
# if __GNUC__ < 3
|
||||
// sizeof(_Bool) == 1 must be true for BeOS compatibility
|
||||
typedef unsigned char _Bool;
|
||||
# endif
|
||||
# define bool _Bool
|
||||
# define true 1
|
||||
# define false 0
|
||||
|
Loading…
Reference in New Issue
Block a user