summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/stdbool.h
blob: 291740ae94157f6569c1837741abe8a18508c3ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _STDBOOL_H_
#define _STDBOOL_H_

#ifndef __cplusplus

#undef bool
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
#define bool _Bool
#else
#define bool unsigned char
#endif

#undef false
#define false 0
#undef true
#define true 1

#define __bool_true_false_are_defined 1

#endif /* !__cplusplus */

#endif /* _STDBOOL_H_ */