This is the mail archive of the
newlib-cvs@sourceware.org
mailing list for the newlib project.
[newlib-cygwin] math: fix isinf/isnan on SPU after move to math.h
- From: Yaakov Selkowitz <yselkowitz at sourceware dot org>
- To: newlib-cvs at sourceware dot org
- Date: 7 Apr 2016 15:19:03 -0000
- Subject: [newlib-cygwin] math: fix isinf/isnan on SPU after move to math.h
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3fc46dc562e70f28919df666abd7d613993a843d
commit 3fc46dc562e70f28919df666abd7d613993a843d
Author: Yaakov Selkowitz <yselkowi@redhat.com>
Date: Wed Apr 6 20:33:48 2016 -0500
math: fix isinf/isnan on SPU after move to math.h
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diff:
---
newlib/libm/common/s_isinf.c | 2 ++
newlib/libm/common/s_isnan.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/newlib/libm/common/s_isinf.c b/newlib/libm/common/s_isinf.c
index f22acb7..fe18e2a 100644
--- a/newlib/libm/common/s_isinf.c
+++ b/newlib/libm/common/s_isinf.c
@@ -13,6 +13,8 @@
#ifndef _DOUBLE_IS_32BITS
+#undef isinf
+
int
_DEFUN (isinf, (x),
double x)
diff --git a/newlib/libm/common/s_isnan.c b/newlib/libm/common/s_isnan.c
index 64deacd..bc0a916 100644
--- a/newlib/libm/common/s_isnan.c
+++ b/newlib/libm/common/s_isnan.c
@@ -190,6 +190,8 @@ QUICKREF
#ifndef _DOUBLE_IS_32BITS
+#undef isnan
+
#ifdef __STDC__
int isnan(double x)
#else