From: Rich Felker Date: Wed, 28 Aug 2013 04:41:00 +0000 (-0400) Subject: stdbool.h should define __bool_true_false_are_defined even for C++ X-Git-Tag: v0.9.13~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38e6acbf89afd3dfabb4f4d0506319c339b13663;p=musl stdbool.h should define __bool_true_false_are_defined even for C++ while the incorporation of this requirement from C99 into C++11 was likely an accident, some software expects it to be defined, and it doesn't hurt. if the requirement is removed, then presumably __bool_true_false_are_defined would just be in the implementation namespace and thus defining it would still be legal. --- diff --git a/include/stdbool.h b/include/stdbool.h index 420c332c..a9d7ab78 100644 --- a/include/stdbool.h +++ b/include/stdbool.h @@ -7,8 +7,8 @@ #define false 0 #define bool _Bool -#define __bool_true_false_are_defined 1 - #endif +#define __bool_true_false_are_defined 1 + #endif