forked from boostorg/container_hash
Some STLport fixes for hash.
[SVN r53169]
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
// STLport
|
// STLport
|
||||||
#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
|
#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
|
||||||
#defined BOOST_HASH_USE_FPCLASSIFY 0
|
#define BOOST_HASH_USE_FPCLASSIFY 0
|
||||||
|
|
||||||
// GNU libstdc++ 3
|
// GNU libstdc++ 3
|
||||||
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
|
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
|
||||||
|
@@ -16,9 +16,10 @@
|
|||||||
#include <boost/limits.hpp>
|
#include <boost/limits.hpp>
|
||||||
|
|
||||||
// On OpenBSD, numeric_limits is not reliable for long doubles, but
|
// On OpenBSD, numeric_limits is not reliable for long doubles, but
|
||||||
// the macros defined in <float.h> are.
|
// the macros defined in <float.h> are and support long double when STLport
|
||||||
|
// doesn't.
|
||||||
|
|
||||||
#if defined(__OpenBSD__)
|
#if defined(__OpenBSD__) || defined(_STLP_NO_LONG_DOUBLE)
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -29,7 +30,7 @@ namespace boost
|
|||||||
template <class T>
|
template <class T>
|
||||||
struct limits : std::numeric_limits<T> {};
|
struct limits : std::numeric_limits<T> {};
|
||||||
|
|
||||||
#if defined(__OpenBSD__)
|
#if defined(__OpenBSD__) || defined(_STLP_NO_LONG_DOUBLE)
|
||||||
template <>
|
template <>
|
||||||
struct limits<long double>
|
struct limits<long double>
|
||||||
: std::numeric_limits<long double>
|
: std::numeric_limits<long double>
|
||||||
@@ -49,6 +50,9 @@ namespace boost
|
|||||||
BOOST_STATIC_CONSTANT(int, digits = LDBL_MANT_DIG);
|
BOOST_STATIC_CONSTANT(int, digits = LDBL_MANT_DIG);
|
||||||
BOOST_STATIC_CONSTANT(int, max_exponent = LDBL_MAX_EXP);
|
BOOST_STATIC_CONSTANT(int, max_exponent = LDBL_MAX_EXP);
|
||||||
BOOST_STATIC_CONSTANT(int, min_exponent = LDBL_MIN_EXP);
|
BOOST_STATIC_CONSTANT(int, min_exponent = LDBL_MIN_EXP);
|
||||||
|
#if defined(_STLP_NO_LONG_DOUBLE)
|
||||||
|
BOOST_STATIC_CONSTANT(int, radix = FLT_RADIX);
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
#endif // __OpenBSD__
|
#endif // __OpenBSD__
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user