diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-11-29 02:29:55 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-12-02 22:25:18 +0300 |
commit | 74b5f1086237dc4e16e64768f4f4eacac22db2ee (patch) | |
tree | 3ae4ebaffb101f7dce8f70e14e3afa710a188c48 /configure | |
parent | 70faadc8268763ea6825e9846927150c5fb15d9c (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-x | configure | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |