Fix compilation due to __nan defines
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 22 Oct 2011 11:49:49 +0000 (13:49 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 22 Oct 2011 12:03:26 +0000 (14:03 +0200)
ChangeLog
math/s_nan.c
math/s_nanf.c
math/s_nanl.c
sysdeps/ieee754/ldbl-128ibm/s_atanl.c

index adc9025..4d0651a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * math/s_nan.c: Undef __nan.
+       * math/s_nanf.c: Undef __nanf.
+       * math/s_nanl.c: Undef __nanl.
+       * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
+       "math_private.h".
+
 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
 
        * math/math_private.h: Define __nan, __nanf, __nanl.
index 9b2c505..97f9d89 100644 (file)
@@ -25,6 +25,7 @@
 #include <ieee754.h>
 
 
+#undef __nan
 double
 __nan (const char *tagp)
 {
index 2e1b1eb..6161bcd 100644 (file)
@@ -25,6 +25,7 @@
 #include <ieee754.h>
 
 
+#undef __nanf
 float
 __nanf (const char *tagp)
 {
index 9709b92..1db2464 100644 (file)
@@ -25,6 +25,7 @@
 #include <ieee754.h>
 
 
+#undef __nanl
 long double
 __nanl (const char *tagp)
 {
index b6195f1..db31e4f 100644 (file)
@@ -59,6 +59,7 @@
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA */
 
 
+#include <math.h>
 #include "math_private.h"
 #include <math_ldbl_opt.h>