mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-09-25 11:43:43 +08:00
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 <haithem.rahmani@st.com> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
This commit is contained in:
committed by
Ed Mooring
parent
a55c8a2cb7
commit
65d77a680b
+2
-1
@@ -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 <stdint.h>
|
||||
# include <stdatomic.h>
|
||||
#elif defined(__GNUC__)
|
||||
|
||||
Reference in New Issue
Block a user