Keith Packard
2018-09-06 04:18:29 UTC
Make configuring the library a bit simpler
Signed-off-by: Keith Packard <***@keithp.com>
---
This seems simpler than computing this value during configure, and
will make using meson easier in the future.
newlib/libc/include/ieeefp.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/newlib/libc/include/ieeefp.h b/newlib/libc/include/ieeefp.h
index 2d6421a4c..71749ccc0 100644
--- a/newlib/libc/include/ieeefp.h
+++ b/newlib/libc/include/ieeefp.h
@@ -143,6 +143,11 @@ typedef union
#endif /* __IEEE_LITTLE_ENDIAN */
+#if LDBL_MANT_DIG == DBL_MANT_DIG && LDBL_MIN_EXP == DBL_MIN_EXP && \
+ LDBL_MAX_EXP == DBL_MAX_EXP
+#define _LDBL_EQ_DBL
+#endif
+
#ifndef _LDBL_EQ_DBL
#ifndef LDBL_MANT_DIG
Signed-off-by: Keith Packard <***@keithp.com>
---
This seems simpler than computing this value during configure, and
will make using meson easier in the future.
newlib/libc/include/ieeefp.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/newlib/libc/include/ieeefp.h b/newlib/libc/include/ieeefp.h
index 2d6421a4c..71749ccc0 100644
--- a/newlib/libc/include/ieeefp.h
+++ b/newlib/libc/include/ieeefp.h
@@ -143,6 +143,11 @@ typedef union
#endif /* __IEEE_LITTLE_ENDIAN */
+#if LDBL_MANT_DIG == DBL_MANT_DIG && LDBL_MIN_EXP == DBL_MIN_EXP && \
+ LDBL_MAX_EXP == DBL_MAX_EXP
+#define _LDBL_EQ_DBL
+#endif
+
#ifndef _LDBL_EQ_DBL
#ifndef LDBL_MANT_DIG
--
2.19.0.rc2
2.19.0.rc2