aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi@remlab.net>2024-09-09 16:15:18 +0200
committerAnton Khirnov <anton@khirnov.net>2024-09-23 17:08:46 +0200
commita7505ec5620a5969ac35fb2999fbe5e6534a8a34 (patch)
treeb6702c91f84d7ba95dc11d6dd9cceb8ec29044b5 /configure
parent8c185ef4e7a2f58f2a8a71c7696fb81837d936b6 (diff)
downloadffmpeg-a7505ec5620a5969ac35fb2999fbe5e6534a8a34.tar.gz
compat: add a fallback implementation of C23 stdbit.h
Header contents taken from VLC commit 7a970a33329c9836d169727ddbaf49a33240d587. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 99bd3ca7bf..d77a55b653 100755
--- a/configure
+++ b/configure
@@ -7788,6 +7788,10 @@ if disabled stdatomic; then
fi
fi
+check_builtin stdbit "stdbit.h assert.h" \
+ 'static_assert(__STDC_VERSION_STDBIT_H__ >= 202311L, "Compiler lacks stdbit.h")' || \
+ add_cppflags '-I\$(SRC_PATH)/compat/stdbit'
+
# Check if requested libraries were found.
for lib in $AUTODETECT_LIBS; do
requested $lib && ! enabled $lib && die "ERROR: $lib requested but not found";