mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
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:
parent
fb0391c28b
commit
64b46b706b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user