diff options
author | maxim <maxim@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2009-11-20 07:57:37 +0000 |
---|---|---|
committer | maxim <maxim@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2009-11-20 07:57:37 +0000 |
commit | 13f9386e858d4de839bcf681debed84ea7f02974 (patch) | |
tree | 64a0cf05efa1d5adf62c234593c125a16bcb1cb6 /libc/math/math.h | |
parent | 204c2ee888323ba936900ae4067b950335245bf8 (diff) |
2009-11-20 Jakub Jelinek <jakub@redhat.com>
PR libc/10103
* math/math.h: Provide *l long double prototypes redirecting
to double functions even when __NO_LONG_DOUBLE_MATH and not
__LDBL_COMPAT.
* math/complex.h: Likewise.
git-svn-id: svn://svn.eglibc.org/trunk@9305 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/math/math.h')
-rw-r--r-- | libc/math/math.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/libc/math/math.h b/libc/math/math.h index 4e65678b8..3abf7ae9a 100644 --- a/libc/math/math.h +++ b/libc/math/math.h @@ -98,7 +98,9 @@ __BEGIN_DECLS # undef __MATH_PRECNAME # if (__STDC__ - 0 || __GNUC__ - 0) \ - && (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT) + && (!defined __NO_LONG_DOUBLE_MATH \ + || defined __LDBL_COMPAT \ + || !defined _LIBC) # ifdef __LDBL_COMPAT # ifdef __USE_ISOC99 @@ -115,9 +117,9 @@ extern long double __REDIRECT_NTH (nexttowardl, nextafter) __attribute__ ((__const__)); # endif # endif +# endif -/* Include the file of declarations again, this time using `long double' - instead of `double' and appending l to each function name. */ +# if defined __LDBL_COMPAT || defined __NO_LONG_DOUBLE_MATH # undef __MATHDECL_1 # define __MATHDECL_2(type, function,suffix, args, alias) \ @@ -127,6 +129,8 @@ extern long double __REDIRECT_NTH (nexttowardl, __MATHDECL_2(type, function,suffix, args, __CONCAT(function,suffix)) # endif +/* Include the file of declarations again, this time using `long double' + instead of `double' and appending l to each function name. */ # ifndef _Mlong_double_ # define _Mlong_double_ long double # endif @@ -140,8 +144,8 @@ extern long double __REDIRECT_NTH (nexttowardl, # define _Mdouble_END_NAMESPACE __END_NAMESPACE_C99 # include <bits/mathcalls.h> # undef _Mdouble_ -# undef _Mdouble_BEGIN_NAMESPACE -# undef _Mdouble_END_NAMESPACE +# undef _Mdouble_BEGIN_NAMESPACE +# undef _Mdouble_END_NAMESPACE # undef __MATH_PRECNAME # endif /* __STDC__ || __GNUC__ */ |