From cd396b619a781bc20f8b5c691076cc669344ef02 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 19 May 2017 19:18:40 +0100 Subject: [PATCH] Clang 3.x can't parse from gcc-4.6 and earlier. --- include/boost/config/stdlib/libstdcpp3.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/boost/config/stdlib/libstdcpp3.hpp b/include/boost/config/stdlib/libstdcpp3.hpp index 152435fc..5299c98c 100644 --- a/include/boost/config/stdlib/libstdcpp3.hpp +++ b/include/boost/config/stdlib/libstdcpp3.hpp @@ -163,10 +163,13 @@ extern "C" char *gets (char *__s); #endif // // Early clang versions can handle , not exactly sure which versions -// but certainly up to clang-3.4 and gcc-4.6: +// but certainly up to clang-3.8 and gcc-4.6: // -#if (__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 5)) -# if BOOST_LIBSTDCXX_VERSION < 50000 +#if (__clang_major__ < 5) +# if BOOST_LIBSTDCXX_VERSION < 40800 +# define BOOST_NO_CXX11_HDR_FUTURE +# define BOOST_NO_CXX11_HDR_MUTEX +# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE # define BOOST_NO_CXX11_HDR_CHRONO # endif #endif