Add API check to Android spinlock shim

Android spinlock shim not needed on modern (API 24+) Android, this fixes compiling on Termux

Signed-off-by: s00se <95649696+s00se@users.noreply.github.com>
This commit is contained in:
s00se
2026-08-19 20:04:03 -06:00
committed by GitHub
parent cb5b3b65c8
commit 0482fa8757
+1 -1
View File
@@ -30,7 +30,7 @@
# include "pthread_spin_lock_shim.h" // spinlock shim for OSX ..
#endif
#ifdef __ANDROID__
#if defined(__ANDROID__) && __ANDROID_API__ < 24
//Spinlock patch for building with Android NDK
typedef pthread_mutex_t pthread_spinlock_t;