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:
@@ -3,7 +3,10 @@
|
|||||||
#define __STDBOOL_H__ 1
|
#define __STDBOOL_H__ 1
|
||||||
|
|
||||||
#if defined(__BEOS__) || defined(__HAIKU__)
|
#if defined(__BEOS__) || defined(__HAIKU__)
|
||||||
typedef unsigned char _Bool;
|
#if __GNUC__ < 3
|
||||||
|
typedef unsigned char _Bool;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define bool _Bool
|
#define bool _Bool
|
||||||
#define false 0
|
#define false 0
|
||||||
#define true 1
|
#define true 1
|
||||||
|
|||||||
Reference in New Issue
Block a user