mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
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.
This commit is contained in:
parent
ebc87349fe
commit
38e6acbf89
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@
|
|||
#define false 0
|
||||
#define bool _Bool
|
||||
|
||||
#endif
|
||||
|
||||
#define __bool_true_false_are_defined 1
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue