From 45100b9c04bf16d25bd97be7301e59290dc53bd4 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 19 Mar 2021 17:37:28 +0000 Subject: [PATCH] Tentative fix for issue 376. Fixes: https://github.com/boostorg/config/issues/376. --- include/boost/config/stdlib/libstdcpp3.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/config/stdlib/libstdcpp3.hpp b/include/boost/config/stdlib/libstdcpp3.hpp index e63a0975..d0c00155 100644 --- a/include/boost/config/stdlib/libstdcpp3.hpp +++ b/include/boost/config/stdlib/libstdcpp3.hpp @@ -166,6 +166,13 @@ #elif __has_include() # define BOOST_LIBSTDCXX_VERSION 40300 #endif +// +// If BOOST_HAS_FLOAT128 is set, now that we know the std lib is libstdc++3, check to see if the std lib is +// configured to support this type. If not disable it: +// +#if defined(BOOST_HAS_FLOAT128) && !defined(_GLIBCXX_USE_FLOAT128) +# undef BOOST_HAS_FLOAT128 +#endif #if (BOOST_LIBSTDCXX_VERSION >= 100000) && defined(BOOST_HAS_HASH) //