From 65d77a680b7ba61eab20c28ee25f57751023995c Mon Sep 17 00:00:00 2001 From: Haithem Rahmani Date: Sat, 23 Feb 2019 11:18:43 +0100 Subject: [PATCH] Make ARMCC use GCC atomic routines The MDK-ARM ARMCC doesn't provide the "stdatomic.h", however, with the option "--gnu", it can support the standard gcc atomic routines. This patch makes the armcc compiler use the "compiler/gcc/atomic.h" Signed-off-by: Haithem Rahmani Signed-off-by: Arnaud Pouliquen --- lib/atomic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/atomic.h b/lib/atomic.h index d82bb82..44d6b9a 100644 --- a/lib/atomic.h +++ b/lib/atomic.h @@ -94,7 +94,8 @@ using std::atomic_fetch_and_explicit; using std::atomic_thread_fence; using std::atomic_signal_fence; -#elif defined(HAVE_STDATOMIC_H) && !defined(__STDC_NO_ATOMICS__) +#elif defined(HAVE_STDATOMIC_H) && !defined(__CC_ARM) && \ + !defined(__STDC_NO_ATOMICS__) # include # include #elif defined(__GNUC__)