diff options
Diffstat (limited to 'newlib/libc/include/stdbool.h')
-rw-r--r-- | newlib/libc/include/stdbool.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/newlib/libc/include/stdbool.h b/newlib/libc/include/stdbool.h new file mode 100644 index 000000000..291740ae9 --- /dev/null +++ b/newlib/libc/include/stdbool.h @@ -0,0 +1,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_ */ |