Ticket #5090: tr1.hpp.patch

File tr1.hpp.patch, 521 bytes (added by hstong@…, 12 years ago)

Patch boost/math/tr1.hpp to set BOOST_MATH_C99_THROW_SPEC for IBM compiler on Linux

  • boost/math/tr1.hpp

    old new  
    4040// Set any throw specifications on the C99 extern "C" functions - these have to be
    4141// the same as used in the std lib if any.
    4242//
    43 #if defined(__GLIBC__) && defined(__THROW)
     43#if defined(__GLIBC__) && defined(__THROW) \
     44   || defined(__IBMCPP__) && defined(__LINUX__) && defined(__THROW)
    4445#  define BOOST_MATH_C99_THROW_SPEC __THROW
    4546#else
    4647#  define BOOST_MATH_C99_THROW_SPEC