You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
configure: use c++11 and fallback to c++0x for c++ files
Needed for the C+11 atomics. Also change add_cxxflags to check_cxxflags. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -4649,7 +4649,7 @@ fi
|
|||||||
|
|
||||||
add_cppflags -D_ISOC99_SOURCE
|
add_cppflags -D_ISOC99_SOURCE
|
||||||
add_cxxflags -D__STDC_CONSTANT_MACROS
|
add_cxxflags -D__STDC_CONSTANT_MACROS
|
||||||
add_cxxflags -std=c++98
|
check_cxxflags -std=c++11 || check_cxxflags -std=c++0x
|
||||||
|
|
||||||
# some compilers silently accept -std=c11, so we also need to check that the
|
# some compilers silently accept -std=c11, so we also need to check that the
|
||||||
# version macro is defined properly
|
# version macro is defined properly
|
||||||
|
Reference in New Issue
Block a user