diff options
| author | David Chisnall <theraven@FreeBSD.org> | 2012-01-16 18:19:53 +0000 |
|---|---|---|
| committer | David Chisnall <theraven@FreeBSD.org> | 2012-01-16 18:19:53 +0000 |
| commit | 03c142e76290016711675793c65fe924a3d1b779 (patch) | |
| tree | 235057686e3142a55712817dd934812ef1375aec /include/stdatomic.h | |
| parent | d83064751aaa122c417f8a89a29acccd4d652444 (diff) | |
Notes
Diffstat (limited to 'include/stdatomic.h')
| -rw-r--r-- | include/stdatomic.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/stdatomic.h b/include/stdatomic.h index b58a73be7f541..8a40ae205ea82 100644 --- a/include/stdatomic.h +++ b/include/stdatomic.h @@ -104,10 +104,7 @@ enum memory_order { * 7.17.4 Fences. */ -#if defined(__CLANG_ATOMICS) -#define atomic_thread_fence(order) __atomic_thread_fence(order) -#define atomic_signal_fence(order) __asm volatile ("" : : : "memory") -#elif defined(__GNUC_ATOMICS) +#if defined(__CLANG_ATOMICS) || defined(__GNUC_ATOMICS) #define atomic_thread_fence(order) __atomic_thread_fence(order) #define atomic_signal_fence(order) __atomic_signal_fence(order) #else |
