]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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 adc9025a84d5ed14b6ca9f8d0f705e6b419be7fa..4d0651aa0d7babf26ad28e968550cc9479689632 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 9b2c50558bf39e16687d677d55e7b19c404e8c9d..97f9d898a078d600b1bc207568f58210bb5034da 100644 (file)
@@ -25,6 +25,7 @@
 #include <ieee754.h>
 
 
+#undef __nan
 double
 __nan (const char *tagp)
 {
index 2e1b1eb9114b5b0fb04cbbade60439514dbb1ea8..6161bcdd29889967eb54cd73ac88d5bfcdf3c154 100644 (file)
@@ -25,6 +25,7 @@
 #include <ieee754.h>
 
 
+#undef __nanf
 float
 __nanf (const char *tagp)
 {
index 9709b9238383e7df5f16c4b5e05ba06117d70ac0..1db246426c1165db101ed5e7a20965cb7ad0297d 100644 (file)
@@ -25,6 +25,7 @@
 #include <ieee754.h>
 
 
+#undef __nanl
 long double
 __nanl (const char *tagp)
 {
index b6195f10be342073b82b7f67e569e4e98b83b5ed..db31e4f90e767c04e867192cc32c2487fcddaef3 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>