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:
1 parent
cb5b3b65c8
commit
0482fa8757
1 file changed
+1
-1
@@ -30,7 +30,7 @@
|
|||||||
# include "pthread_spin_lock_shim.h" // spinlock shim for OSX ..
|
# include "pthread_spin_lock_shim.h" // spinlock shim for OSX ..
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __ANDROID__
|
#if defined(__ANDROID__) && __ANDROID_API__ < 24
|
||||||
//Spinlock patch for building with Android NDK
|
//Spinlock patch for building with Android NDK
|
||||||
|
|
||||||
typedef pthread_mutex_t pthread_spinlock_t;
|
typedef pthread_mutex_t pthread_spinlock_t;
|
||||||
|
|||||||
Reference in new issue
Block a user