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:
@@ -8,9 +8,10 @@
|
|||||||
#ifndef __bool_true_false_are_defined
|
#ifndef __bool_true_false_are_defined
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
//typedef enum { false = 0, true = 1 } _Bool;
|
# if __GNUC__ < 3
|
||||||
// ToDo: this would change the bool size compared to standard BeOS
|
// sizeof(_Bool) == 1 must be true for BeOS compatibility
|
||||||
typedef unsigned char _Bool;
|
typedef unsigned char _Bool;
|
||||||
|
# endif
|
||||||
# define bool _Bool
|
# define bool _Bool
|
||||||
# define true 1
|
# define true 1
|
||||||
# define false 0
|
# define false 0
|
||||||
|
|||||||
Reference in New Issue
Block a user