Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/83909?usp=email )
Change subject: include/stdbool: Don't unconditionally typedef bool ......................................................................
include/stdbool: Don't unconditionally typedef bool
Change-Id: Iec9b4e3f308008ece773ce3460daff97370161ea Signed-off-by: Elyes Haouas ehaouas@noos.fr --- M src/include/stdbool.h 1 file changed, 7 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/83909/1
diff --git a/src/include/stdbool.h b/src/include/stdbool.h index 3733527..99d59b4 100644 --- a/src/include/stdbool.h +++ b/src/include/stdbool.h @@ -3,8 +3,13 @@ #ifndef __STDBOOL_H__ #define __STDBOOL_H__
+ +#if __STDC_VERSION__ <= 201710L +#ifndef bool typedef _Bool bool; -#define true 1 -#define false 0 +#endif +#define true 1 +#define false 0 +#endif
#endif /* __STDBOOL_H__ */