Remove checks for float macros, I was being over-paranoid.

[SVN r35349]
This commit is contained in:
Daniel James
2006-09-26 23:28:34 +00:00
parent a08d42c10f
commit a60b7d12f3

View File

@@ -58,35 +58,21 @@ namespace boost
struct float_limits<long double> struct float_limits<long double>
: std::numeric_limits<long double> : std::numeric_limits<long double>
{ {
#if defined(LDBL_EPSILON)
static long double epsilon() { static long double epsilon() {
return LDBL_EPSILON; return LDBL_EPSILON;
} }
#endif
#if defined(LDBL_MANT_DIG)
BOOST_STATIC_CONSTANT(int, digits = LDBL_MANT_DIG);
#endif
#if defined(LDBL_MAX)
static long double (max)() { static long double (max)() {
return LDBL_MAX; return LDBL_MAX;
} }
#endif
#if defined(LDBL_MIN)
static long double (min)() { static long double (min)() {
return LDBL_MIN; return LDBL_MIN;
} }
#endif
#if defined(LDBL_MAX_EXP) 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);
#endif
#if defined(LDBL_MIN_EXP)
BOOST_STATIC_CONSTANT(int, min_exponent = LDBL_MIN_EXP); BOOST_STATIC_CONSTANT(int, min_exponent = LDBL_MIN_EXP);
#endif
}; };
#endif // __FreeBSD__/__NetBSD__/__OpenBSD__/__DragonFly__ #endif // __FreeBSD__/__NetBSD__/__OpenBSD__/__DragonFly__