|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53169 - trunk/boost/functional/hash/detail
From: daniel_james_at_[hidden]
Date: 2009-05-22 02:01:35
Author: danieljames
Date: 2009-05-22 02:01:35 EDT (Fri, 22 May 2009)
New Revision: 53169
URL: http://svn.boost.org/trac/boost/changeset/53169
Log:
Some STLport fixes for hash.
Text files modified:
trunk/boost/functional/hash/detail/hash_float.hpp | 2 +-
trunk/boost/functional/hash/detail/limits.hpp | 10 +++++++---
2 files changed, 8 insertions(+), 4 deletions(-)
Modified: trunk/boost/functional/hash/detail/hash_float.hpp
==============================================================================
--- trunk/boost/functional/hash/detail/hash_float.hpp (original)
+++ trunk/boost/functional/hash/detail/hash_float.hpp 2009-05-22 02:01:35 EDT (Fri, 22 May 2009)
@@ -42,7 +42,7 @@
// STLport
#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
-#defined BOOST_HASH_USE_FPCLASSIFY 0
+#define BOOST_HASH_USE_FPCLASSIFY 0
// GNU libstdc++ 3
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
Modified: trunk/boost/functional/hash/detail/limits.hpp
==============================================================================
--- trunk/boost/functional/hash/detail/limits.hpp (original)
+++ trunk/boost/functional/hash/detail/limits.hpp 2009-05-22 02:01:35 EDT (Fri, 22 May 2009)
@@ -16,9 +16,10 @@
#include <boost/limits.hpp>
// 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>
#endif
@@ -29,7 +30,7 @@
template <class T>
struct limits : std::numeric_limits<T> {};
-#if defined(__OpenBSD__)
+#if defined(__OpenBSD__) || defined(_STLP_NO_LONG_DOUBLE)
template <>
struct limits<long double>
: std::numeric_limits<long double>
@@ -49,6 +50,9 @@
BOOST_STATIC_CONSTANT(int, digits = LDBL_MANT_DIG);
BOOST_STATIC_CONSTANT(int, max_exponent = LDBL_MAX_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__
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk