Ticket #583: boost-numeric-interval-detail-ppc_rounding_control_hpp.2.patch

File boost-numeric-interval-detail-ppc_rounding_control_hpp.2.patch, 735 bytes (added by Thomas Witt, 15 years ago)

Update patch per request from guillaume.melquiond@…

  • boost/numeric/interval/detail/ppc_rounding_control.hpp

    diff -ru boost_1_34_0/boost/numeric/interval/detail/ppc_rounding_control.hpp boost_1_34_0_ibm/boost/numeric/interval/detail/ppc_rounding_control.hpp
    old new  
    5151
    5252} // namespace detail
    5353
     54// Do not declare the following C99 symbols if <math.h> provides them.
     55// Otherwise, conflicts may occur, due to differences between prototypes.
     56#if !defined(_ISOC99_SOURCE) && !defined(__USE_ISOC99)
    5457extern "C" {
    5558  float rintf(float);
    5659  double rint(double);
    5760}
     61#endif
    5862
    5963template<>
    6064struct rounding_control<float>: