diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-03-12 16:51:53 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2009-08-30 11:57:48 -0700 |
commit | ad8e1035c3feb1650640c2cfc995c1f5f917bbc7 (patch) | |
tree | a0c69831ad653d8e8b897187a7676a26f8fa0728 /include/math.h | |
parent | de60cf611b1b7dcad53f21728360dff1792ab4fc (diff) |
honour NO_LONG_DOUBLE_MATH
This fixes compilation errors on hosts that turn off long double support
for C99 like powerpc32.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include/math.h')
-rw-r--r-- | include/math.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/math.h b/include/math.h index a8f06082c..a7c69b084 100644 --- a/include/math.h +++ b/include/math.h @@ -135,7 +135,7 @@ __BEGIN_DECLS # if (defined __STDC__ || defined __GNUC__) \ - && (defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ || defined __LDBL_COMPAT) + && (defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT) # ifdef __LDBL_COMPAT # ifdef __USE_ISOC99 @@ -249,7 +249,7 @@ enum }; /* Return number of classification appropriate for X. */ -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__ +# ifdef __NO_LONG_DOUBLE_MATH # define fpclassify(x) \ (sizeof (x) == sizeof (float) ? __fpclassifyf (x) : __fpclassify (x)) # else @@ -261,7 +261,7 @@ enum # endif /* Return nonzero value if sign of X is negative. */ -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__ +# ifdef __NO_LONG_DOUBLE_MATH # define signbit(x) \ (sizeof (x) == sizeof (float) ? __signbitf (x) : __signbit (x)) # else @@ -273,7 +273,7 @@ enum # endif /* Return nonzero value if X is not +-Inf or NaN. */ -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__ +# ifdef __NO_LONG_DOUBLE_MATH # define isfinite(x) \ (sizeof (x) == sizeof (float) ? __finitef (x) : __finite (x)) # else @@ -289,7 +289,7 @@ enum /* Return nonzero value if X is a NaN. We could use `fpclassify' but we already have this functions `__isnan' and it is faster. */ -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__ +# ifdef __NO_LONG_DOUBLE_MATH # define isnan(x) \ (sizeof (x) == sizeof (float) ? __isnanf (x) : __isnan (x)) # else @@ -301,7 +301,7 @@ enum # endif /* Return nonzero value is X is positive or negative infinity. */ -# ifndef __UCLIBC_HAS_LONG_DOUBLE_MATH__ +# ifdef __NO_LONG_DOUBLE_MATH # define isinf(x) \ (sizeof (x) == sizeof (float) ? __isinff (x) : __isinf (x)) # else |