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.
This commit is contained in:
Augustin Cavalier 2020-10-10 16:36:59 -04:00
parent fb0391c28b
commit 64b46b706b
1 changed files with 4 additions and 1 deletions

View File

@ -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