From eb680fdd74280e46a9dcd9124c1b83141ecde332 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 21 Mar 2008 23:40:50 +0000 Subject: [PATCH] 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 --- legacy/gcc/gcc/ginclude/stdbool.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/legacy/gcc/gcc/ginclude/stdbool.h b/legacy/gcc/gcc/ginclude/stdbool.h index 0baf9ce..3afe7d4 100644 --- a/legacy/gcc/gcc/ginclude/stdbool.h +++ b/legacy/gcc/gcc/ginclude/stdbool.h @@ -1,7 +1,14 @@ /* stdbool.h for GNU. */ #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 @@ -13,6 +20,8 @@ /* The names `true' and `false' must also be made available as macros. */ #define false false #define true true + +#endif /* Signal that all the definitions are present. */ #define __bool_true_false_are_defined 1 -- gitore 0.2.2