btstack_bool: workaround for Visual Studio

This commit is contained in:
Matthias Ringwald 2024-08-07 12:04:16 +02:00
parent 6f5aa202a8
commit 9eadad2068

View File

@ -57,6 +57,12 @@
# endif # endif
#endif /* __STDC__ */ #endif /* __STDC__ */
// Detecting C99 in Visual Studio requires to disable Microsoft Extensions (/Za) which causes other issues
// Workaround: if MSC, assume stdbool.h exists, which is true for Visual Studio 2022
#ifdef _MSC_VER
#define PREDEF_STANDARD_C_1999
#endif
// define boolean type - required for MISRA-C 2012 Essential Type System // define boolean type - required for MISRA-C 2012 Essential Type System
#ifdef PREDEF_STANDARD_C_1999 #ifdef PREDEF_STANDARD_C_1999