From b77698810fd5b218093a2fe81b9a17112899bb9c Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Thu, 24 Jul 2025 15:40:10 +0100 Subject: [PATCH] hotfix #1154-etl-20.42.2-not-compiling-with-IAR-Arm-compiler-v9.20 --- include/etl/platform.h | 1 + include/etl/profiles/determine_compiler_language_support.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/etl/platform.h b/include/etl/platform.h index 0dbbb80f..248a19f4 100644 --- a/include/etl/platform.h +++ b/include/etl/platform.h @@ -478,6 +478,7 @@ SOFTWARE. defined(ETL_TARGET_DEVICE_ARM_CORTEX_M0_PLUS) || \ defined(__STDC_NO_ATOMICS__) #define ETL_HAS_ATOMIC 0 + #define ETL_HAS_ATOMIC_ALWAYS_LOCK_FREE 0 #else #if ((ETL_USING_CPP11 && (ETL_USING_STL || defined(ETL_IN_UNIT_TEST))) || \ defined(ETL_COMPILER_ARM5) || \ diff --git a/include/etl/profiles/determine_compiler_language_support.h b/include/etl/profiles/determine_compiler_language_support.h index c8aa5ede..322cee87 100644 --- a/include/etl/profiles/determine_compiler_language_support.h +++ b/include/etl/profiles/determine_compiler_language_support.h @@ -219,7 +219,7 @@ SOFTWARE. #endif #if defined(__has_include) - #if !__has_include() + #if __has_include() #include #if defined(__cpp_lib_byteswap)