[newlib-cygwin] libc/stdlib/strtorx.c: Fix ifdef to check _LDBL_EQ_DBL.

Steve Ellcey sje@sourceware.org
Tue Nov 24 22:00:00 GMT 2015


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=10677229b978e422c70f7ea3d4fd6192aca83ac5

commit 10677229b978e422c70f7ea3d4fd6192aca83ac5
Author: Steve Ellcey <Steve.Ellcey@imgtec.com>
Date:   Tue Nov 24 13:59:31 2015 -0800

        libc/stdlib/strtorx.c: Fix ifdef to check _LDBL_EQ_DBL.

Diff:
---
 newlib/ChangeLog             | 4 ++++
 newlib/libc/stdlib/strtorx.c | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index ed71afd..0cae5cf 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
+
+	* libc/stdlib/strtorx.c: Fix ifdef to check _LDBL_EQ_DBL.
+
 2015-11-23  Marcus Shawcroft  <marcus.shawcroft@arm.com>
 
 	* libc/machine/arm/strlen-stub.c: Adjust strlen-armv7.S selection logic.
diff --git a/newlib/libc/stdlib/strtorx.c b/newlib/libc/stdlib/strtorx.c
index 85d8722..44f3db2 100644
--- a/newlib/libc/stdlib/strtorx.c
+++ b/newlib/libc/stdlib/strtorx.c
@@ -37,7 +37,7 @@ THIS SOFTWARE.
 #include "gdtoa.h"
 #include "gd_qnan.h"
 
-#ifdef _HAVE_LONG_DOUBLE
+#if defined (_HAVE_LONG_DOUBLE) && !defined (_LDBL_EQ_DBL)
 
 #undef _0
 #undef _1
@@ -126,4 +126,4 @@ _strtorx_r(struct _reent *p, const char *s, char **sp, int rounding, void *L)
 	return k;
 	}
 
-#endif /* _HAVE_LONG_DOUBLE */
+#endif /* _HAVE_LONG_DOUBLE && !_LDBL_EQ_DBL */



More information about the Newlib-cvs mailing list