diff options
author | bryan newbold <bnewbold@robocracy.org> | 2014-12-02 17:41:47 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2015-03-01 21:42:26 -0800 |
commit | fa832894e33b37b4a5bd890aa1d1ca57e8fc6497 (patch) | |
tree | f691330403fde58fc8012067ebf0f934c59757df | |
parent | 5bbdf71551efaf7a1da72d76509795ed304538a8 (diff) | |
download | librambutan-fa832894e33b37b4a5bd890aa1d1ca57e8fc6497.tar.gz librambutan-fa832894e33b37b4a5bd890aa1d1ca57e8fc6497.zip |
wirish.h: squelch stdbool.h redefinition compiler warnings
-rw-r--r-- | wirish/include/wirish/wirish.h | 9 |
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 |