1 | Index: boost/functional/hash/detail/limits.hpp
|
---|
2 | ===================================================================
|
---|
3 | --- boost/functional/hash/detail/limits.hpp (revision 75283)
|
---|
4 | +++ boost/functional/hash/detail/limits.hpp (working copy)
|
---|
5 | @@ -15,11 +15,7 @@
|
---|
6 |
|
---|
7 | #include <boost/limits.hpp>
|
---|
8 |
|
---|
9 | -// On OpenBSD, numeric_limits is not reliable for long doubles, but
|
---|
10 | -// the macros defined in <float.h> are and support long double when STLport
|
---|
11 | -// doesn't.
|
---|
12 | -
|
---|
13 | -#if defined(__OpenBSD__) || defined(_STLP_NO_LONG_DOUBLE)
|
---|
14 | +#if defined(_STLP_NO_LONG_DOUBLE)
|
---|
15 | #include <float.h>
|
---|
16 | #endif
|
---|
17 |
|
---|
18 | @@ -30,7 +26,7 @@
|
---|
19 | template <class T>
|
---|
20 | struct limits : std::numeric_limits<T> {};
|
---|
21 |
|
---|
22 | -#if defined(__OpenBSD__) || defined(_STLP_NO_LONG_DOUBLE)
|
---|
23 | +#if defined(_STLP_NO_LONG_DOUBLE)
|
---|
24 | template <>
|
---|
25 | struct limits<long double>
|
---|
26 | : std::numeric_limits<long double>
|
---|
27 | @@ -50,11 +46,9 @@
|
---|
28 | BOOST_STATIC_CONSTANT(int, digits = LDBL_MANT_DIG);
|
---|
29 | BOOST_STATIC_CONSTANT(int, max_exponent = LDBL_MAX_EXP);
|
---|
30 | BOOST_STATIC_CONSTANT(int, min_exponent = LDBL_MIN_EXP);
|
---|
31 | -#if defined(_STLP_NO_LONG_DOUBLE)
|
---|
32 | BOOST_STATIC_CONSTANT(int, radix = FLT_RADIX);
|
---|
33 | -#endif
|
---|
34 | };
|
---|
35 | -#endif // __OpenBSD__
|
---|
36 | +#endif
|
---|
37 | }
|
---|
38 | }
|
---|
39 |
|
---|