From f860f25f054305a6430d2113bb5e6c4680b1a2f3 Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Sun, 17 May 2020 08:18:49 -0700 Subject: [PATCH] Add stdbool.h to ape in accordance with c99:7.16. Used by perl, trivial enough that I feel ok with adding it before the port is fully done. --- sys/include/ape/stdbool.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sys/include/ape/stdbool.h diff --git a/sys/include/ape/stdbool.h b/sys/include/ape/stdbool.h new file mode 100644 index 000000000..d0806ff65 --- /dev/null +++ b/sys/include/ape/stdbool.h @@ -0,0 +1,12 @@ +#ifndef __STDBOOL_H__ +#define __STDBOOL_H__ + +/* Strictly speaking, this should be a built-in type. */ +typedef char _Bool; + +#define bool _Bool +#define true 1 +#define false 0 +#define __bool_true_false_are_defined 1 + +#endif