diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-11-28 15:29:56 -0800 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2016-12-02 16:25:18 -0300 |
commit | 41e891e89ed7254293f1613177e73e9d2699bf0d (patch) | |
tree | 9873f95e846cf4e70189891d2b8e06408d4b787d /configure | |
parent | 74b5f1086237dc4e16e64768f4f4eacac22db2ee (diff) | |
download | ffmpeg-41e891e89ed7254293f1613177e73e9d2699bf0d.tar.gz |
Add a compat dummy stdatomic.h used when threading is disabled
Adapted from the code by RĂ©mi Denis-Courmont from VLC
This merges libav commit eb34d40354e2474517c9b9bd787e0dadc89c2a81.
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
@@ -6391,6 +6391,9 @@ if disabled stdatomic_h; then elif enabled pthreads; then add_compat atomics/pthread/stdatomic.o add_cppflags '-I\$(SRC_PATH)/compat/atomics/pthread' + else + enabled threads && die "Threading is enabled, but no atomics are available" + add_cppflags '-I\$(SRC_PATH)/compat/atomics/dummy' fi fi |