aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2011-10-22 13:49:49 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2011-10-22 14:03:26 +0200
commitee2aafe08e68c88412b7dcfa4b1e0d11789348f8 (patch)
tree1714a8f22e2a4f85f698a80a7e69765bb674ac9e
parentbc62c2fb152d6ffec63975d88fd8f1bc3d3b7c01 (diff)
downloadglibc-ee2aafe08e68c88412b7dcfa4b1e0d11789348f8.tar
glibc-ee2aafe08e68c88412b7dcfa4b1e0d11789348f8.tar.gz
glibc-ee2aafe08e68c88412b7dcfa4b1e0d11789348f8.tar.bz2
glibc-ee2aafe08e68c88412b7dcfa4b1e0d11789348f8.zip
Fix compilation due to __nan defines
-rw-r--r--ChangeLog8
-rw-r--r--math/s_nan.c1
-rw-r--r--math/s_nanf.c1
-rw-r--r--math/s_nanl.c1
-rw-r--r--sysdeps/ieee754/ldbl-128ibm/s_atanl.c1
5 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index adc9025a84..4d0651aa0d 100644
--- 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.
diff --git a/math/s_nan.c b/math/s_nan.c
index 9b2c50558b..97f9d898a0 100644
--- a/math/s_nan.c
+++ b/math/s_nan.c
@@ -25,6 +25,7 @@
#include <ieee754.h>
+#undef __nan
double
__nan (const char *tagp)
{
diff --git a/math/s_nanf.c b/math/s_nanf.c
index 2e1b1eb911..6161bcdd29 100644
--- a/math/s_nanf.c
+++ b/math/s_nanf.c
@@ -25,6 +25,7 @@
#include <ieee754.h>
+#undef __nanf
float
__nanf (const char *tagp)
{
diff --git a/math/s_nanl.c b/math/s_nanl.c
index 9709b92383..1db246426c 100644
--- a/math/s_nanl.c
+++ b/math/s_nanl.c
@@ -25,6 +25,7 @@
#include <ieee754.h>
+#undef __nanl
long double
__nanl (const char *tagp)
{
diff --git a/sysdeps/ieee754/ldbl-128ibm/s_atanl.c b/sysdeps/ieee754/ldbl-128ibm/s_atanl.c
index b6195f10be..db31e4f90e 100644
--- a/sysdeps/ieee754/ldbl-128ibm/s_atanl.c
+++ b/sysdeps/ieee754/ldbl-128ibm/s_atanl.c
@@ -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>