summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-05-17 08:18:49 -0700
committerOri Bernstein <ori@eigenstate.org>2020-05-17 08:18:49 -0700
commitf860f25f054305a6430d2113bb5e6c4680b1a2f3 (patch)
tree83789fdea6c72ebe2cfe9fdd1605eb7058db2967 /sys
parent8550a2adb53e41368b0ca706a070cf3e554031c6 (diff)
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/include/ape/stdbool.h12
1 files changed, 12 insertions, 0 deletions
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