From 64b46b706b02d969629415c9a44c394a2a5e4993 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 10 Oct 2020 16:36:59 -0400 Subject: [PATCH] headers: Adjust GCC2 stdbool to be usable by modern GCC. musl's allocator needs to be built with GCC 8, but we need to link it into GCC 2 libroot, which uses GCC 2 headers. --- headers/build/gcc-2.95.3/stdbool.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/headers/build/gcc-2.95.3/stdbool.h b/headers/build/gcc-2.95.3/stdbool.h index e19bcb1faa..0dbda02c3e 100644 --- a/headers/build/gcc-2.95.3/stdbool.h +++ b/headers/build/gcc-2.95.3/stdbool.h @@ -3,7 +3,10 @@ #define __STDBOOL_H__ 1 #if defined(__BEOS__) || defined(__HAIKU__) - typedef unsigned char _Bool; + #if __GNUC__ < 3 + typedef unsigned char _Bool; + #endif + #define bool _Bool #define false 0 #define true 1