From 59267ed800661f81b7f89b49e88473acde7ce4bb Mon Sep 17 00:00:00 2001
From: Cameron Gutman <[EMAIL REDACTED]>
Date: Sun, 12 Apr 2026 14:44:46 -0500
Subject: [PATCH] atomic: Use __atomic_load_n on Android
---
src/atomic/SDL_atomic.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/atomic/SDL_atomic.c b/src/atomic/SDL_atomic.c
index 0cd67ef936e9c..e8a013c0aa036 100644
--- a/src/atomic/SDL_atomic.c
+++ b/src/atomic/SDL_atomic.c
@@ -37,12 +37,8 @@
#if defined(__GNUC__) && (__GNUC__ >= 5)
#define HAVE_ATOMIC_LOAD_N 1
#elif SDL_HAS_BUILTIN(__atomic_load_n) || (defined(__clang__) && defined(HAVE_GCC_ATOMICS))
-/* !!! 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. */
-#ifndef SDL_PLATFORM_ANDROID
#define HAVE_ATOMIC_LOAD_N 1
#endif
-#endif
/*
If any of the operations are not provided then we must emulate some