summaryrefslogtreecommitdiffstats
path: root/basic.h
diff options
context:
space:
mode:
Diffstat (limited to 'basic.h')
-rw-r--r--basic.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/basic.h b/basic.h
index f03d507..7322fae 100644
--- a/basic.h
+++ b/basic.h
@@ -26,9 +26,17 @@
#define BASIC_H
/* bool definitions */
+#ifndef bool
#define bool int
+#endif
+
+#ifndef true
#define true 1
+#endif
+
+#ifndef false
#define false 0
+#endif
#define BOOL_CAST(x) ((x) ? (true) : (false))