aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
Diffstat (limited to 'wirish')
-rw-r--r--wirish/include/wirish/wirish.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/wirish/include/wirish/wirish.h b/wirish/include/wirish/wirish.h
index 610aa3f..606aac0 100644
--- a/wirish/include/wirish/wirish.h
+++ b/wirish/include/wirish/wirish.h
@@ -58,8 +58,13 @@
/* Wiring macros and bit defines */
-#define true 0x1
-#define false 0x0
+// These may have been defined if stdbool.h was included
+#ifndef true
+# define true 0x1
+#endif
+#ifndef false
+# define false 0x0
+#endif
#define LSBFIRST 0
#define MSBFIRST 1