summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-11-28 15:29:55 -0800
committerJames Almer <jamrial@gmail.com>2016-12-02 16:25:18 -0300
commit74b5f1086237dc4e16e64768f4f4eacac22db2ee (patch)
tree3ae4ebaffb101f7dce8f70e14e3afa710a188c48 /configure
parent70faadc8268763ea6825e9846927150c5fb15d9c (diff)
Add a compat stdatomic.h implementation based on pthreads
Adapted from the code by RĂ©mi Denis-Courmont from VLC This merges libav commit f9a6a80e065cdb95b233978f1d96ec9bc863daa1. Signed-off-by: Wan-Teh Chang <wtc@google.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index dfe9bf881e..93df74503b 100755
--- a/configure
+++ b/configure
@@ -6388,6 +6388,9 @@ if disabled stdatomic_h; then
add_cppflags '-I\$(SRC_PATH)/compat/atomics/win32'
elif enabled atomics_suncc; then
add_cppflags '-I\$(SRC_PATH)/compat/atomics/suncc'
+ elif enabled pthreads; then
+ add_compat atomics/pthread/stdatomic.o
+ add_cppflags '-I\$(SRC_PATH)/compat/atomics/pthread'
fi
fi