Commit 1efee037 authored by Sergey Vojtovich's avatar Sergey Vojtovich

Fixed mroonga build failure on Power8: define generic gcc version of

GRN_SET_64BIT.
parent fd4c9af3
...@@ -505,6 +505,9 @@ typedef int grn_cond; ...@@ -505,6 +505,9 @@ typedef int grn_cond;
/* todo */ /* todo */
# define GRN_SET_64BIT(p,v) \ # define GRN_SET_64BIT(p,v) \
(void)atomic_swap_64(p, v) (void)atomic_swap_64(p, v)
# elif defined(__ATOMIC_SEQ_CST) /* GCC atomic builtins */
# define GRN_SET_64BIT(p,v) \
__atomic_store_n(p, v, __ATOMIC_SEQ_CST)
# endif /* ATOMIC 64BIT SET */ # endif /* ATOMIC 64BIT SET */
# ifdef HAVE_MKOSTEMP # ifdef HAVE_MKOSTEMP
......
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