aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@robocracy.org>2014-12-02 17:41:47 -0800
committerbnewbold <bnewbold@robocracy.org>2015-03-01 21:42:26 -0800
commitfa832894e33b37b4a5bd890aa1d1ca57e8fc6497 (patch)
treef691330403fde58fc8012067ebf0f934c59757df /wirish
parent5bbdf71551efaf7a1da72d76509795ed304538a8 (diff)
downloadlibrambutan-fa832894e33b37b4a5bd890aa1d1ca57e8fc6497.tar.gz
librambutan-fa832894e33b37b4a5bd890aa1d1ca57e8fc6497.zip
wirish.h: squelch stdbool.h redefinition compiler warnings
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