Misc updates to stdbool.h to improve resiliency
This commit is contained in:
parent
dde6c83cd9
commit
7e14ea5ae2
@ -7,12 +7,16 @@
|
|||||||
#define __FSTD_HDRS_STDBOOL_H_MACROS 1
|
#define __FSTD_HDRS_STDBOOL_H_MACROS 1
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
|
# undef bool
|
||||||
# define bool _Bool
|
# define bool _Bool
|
||||||
|
|
||||||
|
# undef true
|
||||||
# define true 1
|
# define true 1
|
||||||
|
# undef false
|
||||||
# define false 0
|
# define false 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef __bool_true_false_are_defined
|
||||||
#define __bool_true_false_are_defined 1
|
#define __bool_true_false_are_defined 1
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user