This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix condition for inclusion of math-finite.h for long double
- From: "Gabriel F. T. Gomes" <gftg at linux dot vnet dot ibm dot com>
- To: schwab at linux-m68k dot org
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 31 Mar 2017 10:13:54 -0300
- Subject: [PATCH] Fix condition for inclusion of math-finite.h for long double
- Authentication-results: sourceware.org; auth=none
- References: <87d1cxudkc.fsf@linux-m68k.org>
I accidentaly changed the condition for declaration of long double
functions. Would the following patch fix arm builds?
-- 8< --
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.
2017-03-30 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
* math/math.h: Fix condition for inclusion of math-finite.h
for long double.
---
math/math.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/math/math.h b/math/math.h
index 0c19d45..cfaed0e 100644
--- a/math/math.h
+++ b/math/math.h
@@ -588,7 +588,7 @@ extern int matherr (struct exception *__exc);
# undef _MSUF_
/* Include bits/math-finite.h for long double. */
-# if __MATH_DECLARE_LDOUBLE
+# ifdef __MATH_DECLARE_LDOUBLE
# define _Mdouble_ long double
# define __MATH_DECLARING_DOUBLE 0
# define __MATH_DECLARING_LDOUBLE 1
--
2.4.11