[FFmpeg-devel] [PATCH 1/3] configure: use c++11 and fallback to c++0x for c++ files

Marton Balint cus at passwd.hu
Sun Mar 26 01:51:35 EET 2017


Needed for the C+11 atomics. Also change add_cxxflags to check_cxxflags.

Signed-off-by: Marton Balint <cus at passwd.hu>
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index c1aeb6e..6823894 100755
--- a/configure
+++ b/configure
@@ -4648,7 +4648,7 @@ fi
 
 add_cppflags -D_ISOC99_SOURCE
 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
 # version macro is defined properly
-- 
2.10.2



More information about the ffmpeg-devel mailing list