From 7e14ea5ae2bea6687b138d246e5fc5179e44dca0 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Tue, 25 Apr 2023 22:25:16 +0200 Subject: [PATCH] Misc updates to stdbool.h to improve resiliency --- stdbool.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdbool.h b/stdbool.h index 77a85ae..37ff7bd 100644 --- a/stdbool.h +++ b/stdbool.h @@ -7,12 +7,16 @@ #define __FSTD_HDRS_STDBOOL_H_MACROS 1 #ifndef __cplusplus +# undef bool # define bool _Bool +# undef true # define true 1 +# undef false # define false 0 #endif +#undef __bool_true_false_are_defined #define __bool_true_false_are_defined 1 #endif