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 /libm/ldouble_wrappers.c | |
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 'libm/ldouble_wrappers.c')
-rw-r--r-- | libm/ldouble_wrappers.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libm/ldouble_wrappers.c b/libm/ldouble_wrappers.c index 61940cb12..c53b99773 100644 --- a/libm/ldouble_wrappers.c +++ b/libm/ldouble_wrappers.c @@ -116,6 +116,16 @@ long long func##l(long double x) \ } #endif /* __i386__ && __OPTIMIZE__ */ +#if defined __NO_LONG_DOUBLE_MATH +# define int_WRAPPER_C99(func) /* not needed */ +# else +# define int_WRAPPER_C99(func) \ +int func##l(long double x) \ +{ \ + return func((double) x); \ +} \ +libm_hidden_def(func##l) +#endif /* Implement the following, as defined by SuSv3 */ #if 0 |