From 1d1a0d7f0330557a8ea39241514d707a864c5634 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 13 Apr 2017 15:28:56 -0400 Subject: [PATCH] atomic: Patched to compile on Android. --- src/atomic/SDL_atomic.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/atomic/SDL_atomic.c b/src/atomic/SDL_atomic.c index 3ae7647c6397d..28c25aee7fb83 100644 --- a/src/atomic/SDL_atomic.c +++ b/src/atomic/SDL_atomic.c @@ -39,7 +39,11 @@ #if defined(HAVE_GCC_ATOMICS) # if defined(__clang__) # 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 # elif defined(__GNUC__) # if (__GNUC__ >= 5)