Ticket #2536: utility.hpp.clean.patch

File utility.hpp.clean.patch, 896 bytes (added by Niklas Angare <li51ckf02@…>, 14 years ago)
  • boost/units/detail/utility.hpp

     
    2121#include <boost/cstdint.hpp>
    2222#include <boost/limits.hpp>
    2323
    24 #if defined(__GNUC__) && defined(__cplusplus) && (__GNUC__ >= 3) && !defined(_RWSTD_VER)
    25 #define BOOST_UNITS_USE_DEMANGLING
    26 #endif // __GNUC__
     24#if defined(__GLIBCXX__) || defined(__GLIBCPP__)
    2725
    28 #ifdef BOOST_UNITS_USE_DEMANGLING
    29 
    30 #if (__GNUC__ && __cplusplus && __GNUC__ >= 3)
    3126#include <cxxabi.h>
    32 #endif // __GNUC__
    3327
    3428#include <boost/algorithm/string/replace.hpp>
    3529
    … …  
    8882
    8983} // namespace boost
    9084
    91 #else // BOOST_UNITS_USE_DEMANGLING
     85#else // __GLIBCXX__
    9286
    9387namespace boost {
    9488
    … …  
    118112// To get system-specific predefined macros:
    119113// gcc -arch ppc -dM -E - < /dev/null | sort
    120114
    121 #endif // BOOST_UNITS_USE_DEMANGLING
     115#endif // __GLIBCXX__
    122116
    123117#endif // BOOST_UNITS_UTILITY_HPP