Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2017-03-25 19:36:39 +0300
committerMarton Balint <cus@passwd.hu>2017-03-28 22:57:54 +0300
commit7cfa98fd9460160d94c049bf72123e88d9c41a01 (patch)
treea1243abd117ff8e68c5b644ad7b76e828f826dfc /configure
parent3b80f73b186dc24a39a95edc4243f785d1459273 (diff)
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index dc968bcfd8..a84b12656f 100755
--- a/configure
+++ b/configure
@@ -4649,7 +4649,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