mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
btstack_bool: workaround for Visual Studio
This commit is contained in:
parent
6f5aa202a8
commit
9eadad2068
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user