summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/SDL2/src
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2020-12-12 21:58:26 -0500
committer arbee <rb6502@users.noreply.github.com>2020-12-12 21:58:26 -0500
commit29cff632d3880b4ad8275a457345f1b2379ee73b (patch)
treec653ccdad8f0c25588e4765b976a4a589a09fd9d /3rdparty/SDL2/src
parent728a0937fc675c938644a12cb1a5fbd7d8481de4 (diff)
SDL2: temp macOS compile fix for bundled SDL2 pending the 2.0.14 release [R. Belmont]
Diffstat (limited to '3rdparty/SDL2/src')
-rw-r--r--3rdparty/SDL2/src/atomic/SDL_spinlock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/3rdparty/SDL2/src/atomic/SDL_spinlock.c b/3rdparty/SDL2/src/atomic/SDL_spinlock.c
index f582afb4e2c..94876953007 100644
--- a/3rdparty/SDL2/src/atomic/SDL_spinlock.c
+++ b/3rdparty/SDL2/src/atomic/SDL_spinlock.c
@@ -32,6 +32,10 @@
#include <atomic.h>
#endif
+#if defined(__MACOSX__) /* !!! MAME change, not required when 2.0.14 is released? */
+#include <libkern/OSAtomic.h>
+#endif
+
/* This function is where all the magic happens... */
SDL_bool
SDL_AtomicTryLock(SDL_SpinLock *lock)