Commit aec54fb9 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-9627 clang builds fail on i386

don't use C11 atomics unless HAVE_GCC_C11_ATOMICS is defined
parent 64d4181f
...@@ -328,7 +328,7 @@ make_atomic_store(ptr) ...@@ -328,7 +328,7 @@ make_atomic_store(ptr)
#define MY_ATOMIC_NOT_1CPU 1 #define MY_ATOMIC_NOT_1CPU 1
extern int my_atomic_initialize(); extern int my_atomic_initialize();
#ifdef __ATOMIC_SEQ_CST #ifdef HAVE_GCC_C11_ATOMICS
#define MY_MEMORY_ORDER_RELAXED __ATOMIC_RELAXED #define MY_MEMORY_ORDER_RELAXED __ATOMIC_RELAXED
#define MY_MEMORY_ORDER_CONSUME __ATOMIC_CONSUME #define MY_MEMORY_ORDER_CONSUME __ATOMIC_CONSUME
#define MY_MEMORY_ORDER_ACQUIRE __ATOMIC_ACQUIRE #define MY_MEMORY_ORDER_ACQUIRE __ATOMIC_ACQUIRE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment