From bb292f501d4ced3b460c317c0d749b890e8b1c19 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 21 Nov 2016 21:28:59 +0100 Subject: [PATCH] m4/ax_cxx_compile_stdcxx.m4: workarounds to allow gcc 4.8 gcc 4.8 doesn't have full C++14 support, but it's enough for MPD. --- m4/ax_cxx_compile_stdcxx.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/m4/ax_cxx_compile_stdcxx.m4 b/m4/ax_cxx_compile_stdcxx.m4 index 2c18e49c5..d3ed399ed 100644 --- a/m4/ax_cxx_compile_stdcxx.m4 +++ b/m4/ax_cxx_compile_stdcxx.m4 @@ -449,7 +449,7 @@ m4_define([_AX_CXX_COMPILE_STDCXX_testbody_new_in_14], [[ #error "This is not a C++ compiler" -#elif __cplusplus < 201402L +#elif __cplusplus < 201300L #error "This is not a C++14 compiler" @@ -484,6 +484,7 @@ namespace cxx14 } +#ifdef DISALLOW_GCC48 namespace test_generalized_constexpr { @@ -503,6 +504,7 @@ namespace cxx14 static_assert(strlen_c("another\0test") == 7UL, ""); } +#endif namespace test_lambda_init_capture {