From 29b949de52bc9c9709da30071a69f2cbd2b27167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 13 Apr 2005 16:51:55 +0000 Subject: [PATCH] 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 --- headers/posix/stdbool.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/headers/posix/stdbool.h b/headers/posix/stdbool.h index ec872be326..2a47a6dd64 100644 --- a/headers/posix/stdbool.h +++ b/headers/posix/stdbool.h @@ -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