mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-22 13:14:39 +03:00

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.
15 lines
167 B
C
15 lines
167 B
C
#ifndef _STDBOOL_H
|
|
#define _STDBOOL_H
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#define true 1
|
|
#define false 0
|
|
#define bool _Bool
|
|
|
|
#endif
|
|
|
|
#define __bool_true_false_are_defined 1
|
|
|
|
#endif
|