blob: 766bc1030826bfcbbcecce03521f25ad170bcc4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef LIBC_STDBOOL_H
#define LIBC_STDBOOL_H
#include <stdbool.h>
#if 0
#define __bool_true_false_are_defined 1
#ifndef __cplusplus
#if (__STDC_VERSION__ >= 202311L)
// bool is a type in C23, do not define it
#elif (__STDC_VERSION__ >= 199901L)
#define bool _Bool
#else
#define bool int
#endif
#define false 0
#define true 1
#endif /* __cplusplus */
#endif
#endif /* STDBOOL */
|