atomic: Patched to compile on Android.
This commit is contained in:
parent
0c98a5faac
commit
d8af5b0d60
1 changed files with 5 additions and 1 deletions
|
@ -39,7 +39,11 @@
|
||||||
#if defined(HAVE_GCC_ATOMICS)
|
#if defined(HAVE_GCC_ATOMICS)
|
||||||
# if defined(__clang__)
|
# if defined(__clang__)
|
||||||
# if __has_builtin(__atomic_load_n)
|
# if __has_builtin(__atomic_load_n)
|
||||||
# define HAVE_ATOMIC_LOAD_N 1
|
/* !!! FIXME: this advertises as available in the NDK but uses an external symbol we don't have.
|
||||||
|
It might be in a later NDK or we might need an extra library? --ryan. */
|
||||||
|
# if !defined(__ANDROID__)
|
||||||
|
# define HAVE_ATOMIC_LOAD_N 1
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# elif defined(__GNUC__)
|
# elif defined(__GNUC__)
|
||||||
# if (__GNUC__ >= 5)
|
# if (__GNUC__ >= 5)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue