From 81efe20cd74cefd805b68a99a45248cbf4914212 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 13 Feb 2017 06:45:40 +0100 Subject: 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. --- player/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') 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 -- cgit v1.2.3