summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-02-13 06:45:40 +0100
committerwm4 <wm4@nowhere>2017-02-13 06:45:40 +0100
commit81efe20cd74cefd805b68a99a45248cbf4914212 (patch)
tree386cf7cc6ae5acc30722bee465e7f43f15bbfaad /player
parent3739d1318fdb658bb6037bfe06bb6cefb3b50a09 (diff)
downloadmpv-81efe20cd74cefd805b68a99a45248cbf4914212.tar.bz2
mpv-81efe20cd74cefd805b68a99a45248cbf4914212.tar.xz
atomic: remove __atomic builtin usage
Using these was a temporary solution while some compilers implemented the underlying atomic mechanisms, but not the C11 language parts (or that's what I guess). Not really useful for us anymore. Also, there is the slight risk of having subtly incorrect semantics by using potentially changing compiler internals and such.
Diffstat (limited to 'player')
-rw-r--r--player/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/main.c b/player/main.c
index 87ec1ab70b..3f5e5abe59 100644
--- a/player/main.c
+++ b/player/main.c
@@ -74,7 +74,7 @@ static const char def_config[] =
#define FULLCONFIG "(missing)\n"
#endif
-#if !(HAVE_STDATOMIC || HAVE_ATOMIC_BUILTINS || HAVE_SYNC_BUILTINS)
+#if !HAVE_STDATOMIC
pthread_mutex_t mp_atomic_mutex = PTHREAD_MUTEX_INITIALIZER;
#endif