Ticket #11810: 0001-libs-math-convert-sun-__sun-for-strict-ISO-compilers.patch

File 0001-libs-math-convert-sun-__sun-for-strict-ISO-compilers.patch, 1.5 KB (added by Richard PALO <richard@…>, 7 years ago)

patchset for libs/math convert 'sun' => 'sun'

  • include/boost/math/special_functions/detail/fp_traits.hpp

    From e57b201277943bf713d8192084eb0c29ae4d7cc7 Mon Sep 17 00:00:00 2001
    From: Richard PALO <richard@NetBSD.org>
    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 <richard@NetBSD.org>
    ---
     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 b struct select_native<long double>  
    556556   && !defined(__FAST_MATH__)\
    557557   && !defined(BOOST_MATH_DISABLE_STD_FPCLASSIFY)\
    558558   && !defined(BOOST_INTEL)\
    559    && !defined(sun)
     559   && !defined(__sun)
    560560#  define BOOST_MATH_USE_STD_FPCLASSIFY
    561561#endif
    562562
  • include/boost/math/tools/config.hpp

    diff --git a/include/boost/math/tools/config.hpp b/include/boost/math/tools/config.hpp
    index 142aacf..394c1e6 100644
    a b  
    5050// are disabled for now.  (JM 2012).
    5151#  define BOOST_MATH_NO_REAL_CONCEPT_TESTS
    5252#endif
    53 #ifdef sun
     53#ifdef __sun
    5454// Any use of __float128 in program startup code causes a segfault  (tested JM 2015, Solaris 11).
    5555#  define BOOST_MATH_DISABLE_FLOAT128
    5656#endif