--- a/lib/util/include/bool.h +++ b/lib/util/include/bool.h @@ -5,7 +5,11 @@ collision. */ -#ifndef __cplusplus +#ifdef __cplusplus +/* bool has always been part of the C++ language */ +#elif __STDC_VERSION__ >= 202311L +/* bool is part of the C23 standard */ +#else /* At least the GNU compiler defines __bool_true_false_are_defined */ #ifndef __bool_true_false_are_defined #define __bool_true_false_are_defined