From fa832894e33b37b4a5bd890aa1d1ca57e8fc6497 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Tue, 2 Dec 2014 17:41:47 -0800 Subject: wirish.h: squelch stdbool.h redefinition compiler warnings --- wirish/include/wirish/wirish.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'wirish') 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 -- cgit v1.2.3