From a2c1e37ed40a346e8d340345fb9fcf390a4981fb Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 28 Apr 2022 16:47:39 +0200 Subject: [PATCH] btstack_bool: fix warning --- src/btstack_bool.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/btstack_bool.h b/src/btstack_bool.h index dd81666bc..89f2c88ff 100644 --- a/src/btstack_bool.h +++ b/src/btstack_bool.h @@ -65,10 +65,16 @@ #else /* PREDEF_STANDARD_C_1999 */ -// backport for pre-c99 compilers +// backport for pre-c99 compilers or incorrect detection +#ifndef bool #define bool unsigned char +#endif +#ifndef false #define false 0 +#endif +#ifndef true #define true 1 +#endif #endif /* PREDEF_STANDARD_C_1999 */