Commit 04ee14cc authored by Alexander Nozdrin's avatar Alexander Nozdrin

Auto-merge from mysql-next-mr.

parents ffb03b28 5bce1e06
...@@ -68,10 +68,12 @@ ...@@ -68,10 +68,12 @@
#include "atomic/nolock.h" #include "atomic/nolock.h"
#endif #endif
#ifndef make_atomic_cas_body #ifndef MY_ATOMIC_NOLOCK
/* nolock.h was not able to generate even a CAS function, fall back */ /* nolock.h was not able to generate even a CAS function, fall back */
#include "atomic/rwlock.h" #include "atomic/rwlock.h"
#else #endif
#ifndef MY_ATOMICS_MADE
/* define missing functions by using the already generated ones */ /* define missing functions by using the already generated ones */
#ifndef make_atomic_add_body #ifndef make_atomic_add_body
#define make_atomic_add_body(S) \ #define make_atomic_add_body(S) \
...@@ -94,7 +96,6 @@ ...@@ -94,7 +96,6 @@
#define make_atomic_store_body(S) \ #define make_atomic_store_body(S) \
(void)(my_atomic_fas ## S (a, v)); (void)(my_atomic_fas ## S (a, v));
#endif #endif
#endif
/* /*
transparent_union doesn't work in g++ transparent_union doesn't work in g++
...@@ -286,6 +287,7 @@ make_atomic_store(ptr) ...@@ -286,6 +287,7 @@ make_atomic_store(ptr)
#undef make_atomic_load_body #undef make_atomic_load_body
#undef make_atomic_store_body #undef make_atomic_store_body
#undef make_atomic_fas_body #undef make_atomic_fas_body
#endif
#undef intptr #undef intptr
/* /*
......
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