From 3359eede8fc5f6b34b76138a44cf1b2ea45fe0a5 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 28 Nov 2016 13:24:22 -0800 Subject: Add a compat stdatomic.h implementation based on GCC atomics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adapted from the code by RĂ©mi Denis-Courmont from VLC This merges libav commit 4e928ef340ac20325f529d92fcbc51e768085358. Signed-off-by: Wan-Teh Chang Reviewed-by: wm4 Signed-off-by: James Almer --- configure | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 6345fc2d0d..8cbe6f8c42 100755 --- a/configure +++ b/configure @@ -6381,6 +6381,12 @@ for thread in $THREADS_LIST; do fi done +if disabled stdatomic_h; then + if enabled atomics_gcc; then + add_cppflags '-I\$(SRC_PATH)/compat/atomics/gcc' + fi +fi + enabled zlib && add_cppflags -DZLIB_CONST # conditional library dependencies, in linking order -- cgit v1.2.3