mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-15 23:42:52 +00:00
btstack_bool: workaround for Visual Studio
This commit is contained in:
parent
6f5aa202a8
commit
9eadad2068
@ -57,6 +57,12 @@
|
||||
# endif
|
||||
#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
|
||||
#ifdef PREDEF_STANDARD_C_1999
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user