diff --git a/lib/atomic.h b/lib/atomic.h index 2f4ab045..d49f1337 100644 --- a/lib/atomic.h +++ b/lib/atomic.h @@ -100,8 +100,8 @@ using std::atomic_fetch_and_explicit; using std::atomic_thread_fence; using std::atomic_signal_fence; -#elif defined(HAVE_STDATOMIC_H) && !defined(__CC_ARM) && !defined(__arm__) && \ - !defined(__STDC_NO_ATOMICS__) +#elif defined(HAVE_STDATOMIC_H) && !defined(__ARMCC_VERSION) && \ +!defined(__STDC_NO_ATOMICS__) # include # include #elif defined(__GNUC__) diff --git a/lib/compiler.h b/lib/compiler.h index b2801191..b1728246 100644 --- a/lib/compiler.h +++ b/lib/compiler.h @@ -16,7 +16,7 @@ # include #elif defined(__ICCARM__) # include -#elif defined(__CC_ARM) || defined(__arm__) +#elif defined(__ARMCC_VERSION) # error "MDK-ARM ARMCC compiler requires the GNU extensions to work correctly" #else # error "Missing compiler support" diff --git a/lib/errno.h b/lib/errno.h index 2fc4f77a..fa8270db 100644 --- a/lib/errno.h +++ b/lib/errno.h @@ -14,7 +14,7 @@ #if defined(__ICCARM__) # include -#elif defined(__CC_ARM) || defined(__arm__) +#elif defined(__ARMCC_VERSION) # include #else # include