From e57b201277943bf713d8192084eb0c29ae4d7cc7 Mon Sep 17 00:00:00 2001 From: Richard PALO Date: Sat, 21 Nov 2015 06:57:36 +0100 Subject: [PATCH] libs/math convert sun=>__sun for strict ISO compilers Signed-off-by: Richard PALO --- include/boost/math/special_functions/detail/fp_traits.hpp | 2 +- include/boost/math/tools/config.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/math/special_functions/detail/fp_traits.hpp b/include/boost/math/special_functions/detail/fp_traits.hpp index 09dc516..8afc943 100644 --- a/include/boost/math/special_functions/detail/fp_traits.hpp +++ b/include/boost/math/special_functions/detail/fp_traits.hpp @@ -556,7 +556,7 @@ struct select_native && !defined(__FAST_MATH__)\ && !defined(BOOST_MATH_DISABLE_STD_FPCLASSIFY)\ && !defined(BOOST_INTEL)\ - && !defined(sun) + && !defined(__sun) # define BOOST_MATH_USE_STD_FPCLASSIFY #endif diff --git a/include/boost/math/tools/config.hpp b/include/boost/math/tools/config.hpp index 142aacf..394c1e6 100644 --- a/include/boost/math/tools/config.hpp +++ b/include/boost/math/tools/config.hpp @@ -50,7 +50,7 @@ // are disabled for now. (JM 2012). # define BOOST_MATH_NO_REAL_CONCEPT_TESTS #endif -#ifdef sun +#ifdef __sun // Any use of __float128 in program startup code causes a segfault (tested JM 2015, Solaris 11). # define BOOST_MATH_DISABLE_FLOAT128 #endif -- 2.6.3