atomic: Patched to compile on Android.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 13 Apr 2017 15:28:56 -0400
changeset 1097410e16b1151b0
parent 10973 b141211c5d0a
child 10975 602806fdeba6
atomic: Patched to compile on Android.
src/atomic/SDL_atomic.c
     1.1 --- a/src/atomic/SDL_atomic.c	Thu Apr 13 13:28:52 2017 -0400
     1.2 +++ b/src/atomic/SDL_atomic.c	Thu Apr 13 15:28:56 2017 -0400
     1.3 @@ -39,7 +39,11 @@
     1.4  #if defined(HAVE_GCC_ATOMICS)
     1.5  # if defined(__clang__)
     1.6  #   if __has_builtin(__atomic_load_n)
     1.7 -#     define HAVE_ATOMIC_LOAD_N 1
     1.8 +      /* !!! FIXME: this advertises as available in the NDK but uses an external symbol we don't have.
     1.9 +         It might be in a later NDK or we might need an extra library? --ryan. */
    1.10 +#     if !defined(__ANDROID__)
    1.11 +#       define HAVE_ATOMIC_LOAD_N 1
    1.12 +#     endif
    1.13  #   endif
    1.14  # elif defined(__GNUC__)
    1.15  #   if (__GNUC__ >= 5)