mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Fix condition for inclusion of math-finite.h for long double
The condition for declaration of long double functions in math-finite.h was #ifdef __MATH_DECLARE_LDOUBLE before the macroization of this file. After the macroization, it was incorreclty changed to #if __MATH_DECLARE_LDOUBLE, which broke the build for arm. * math/math.h: Fix check for __MATH_DECLARE_LDOUBLE. * math/bits/math-finite.h: Likewise.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2017-03-31 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
|
||||||
|
|
||||||
|
* math/math.h: Fix check for __MATH_DECLARE_LDOUBLE.
|
||||||
|
* math/bits/math-finite.h: Likewise.
|
||||||
|
|
||||||
2017-03-31 Slava Barinov <v.barinov@samsung.com>
|
2017-03-31 Slava Barinov <v.barinov@samsung.com>
|
||||||
|
|
||||||
[BZ #21289]
|
[BZ #21289]
|
||||||
|
@ -177,7 +177,7 @@ __MATH_REDIRCALL (remainder, , (_Mdouble_, _Mdouble_));
|
|||||||
#if (__MATH_DECLARING_DOUBLE \
|
#if (__MATH_DECLARING_DOUBLE \
|
||||||
&& (defined __USE_MISC \
|
&& (defined __USE_MISC \
|
||||||
|| (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8))) \
|
|| (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8))) \
|
||||||
|| (!__MATH_DECLARE_LDOUBLE && defined __USE_MISC)
|
|| (!defined __MATH_DECLARE_LDOUBLE && defined __USE_MISC)
|
||||||
/* scalb. */
|
/* scalb. */
|
||||||
__MATH_REDIRCALL (scalb, , (_Mdouble_, _Mdouble_));
|
__MATH_REDIRCALL (scalb, , (_Mdouble_, _Mdouble_));
|
||||||
#endif
|
#endif
|
||||||
|
@ -588,7 +588,7 @@ extern int matherr (struct exception *__exc);
|
|||||||
# undef _MSUF_
|
# undef _MSUF_
|
||||||
|
|
||||||
/* Include bits/math-finite.h for long double. */
|
/* Include bits/math-finite.h for long double. */
|
||||||
# if __MATH_DECLARE_LDOUBLE
|
# ifdef __MATH_DECLARE_LDOUBLE
|
||||||
# define _Mdouble_ long double
|
# define _Mdouble_ long double
|
||||||
# define __MATH_DECLARING_DOUBLE 0
|
# define __MATH_DECLARING_DOUBLE 0
|
||||||
# define __MATH_DECLARING_LDOUBLE 1
|
# define __MATH_DECLARING_LDOUBLE 1
|
||||||
|
Reference in New Issue
Block a user