Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/common/local.h')
-rw-r--r--newlib/libm/common/local.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/libm/common/local.h b/newlib/libm/common/local.h
new file mode 100644
index 000000000..9e32afacb
--- /dev/null
+++ b/newlib/libm/common/local.h
@@ -0,0 +1,9 @@
+#include <float.h>
+
+/* Check if long double is as wide as double. */
+#if (!defined(__STRICT_ANSI__) || __STDC_VERSION__ > 199901L || \
+ defined(__cplusplus)) && defined(LDBL_MANT_DIG) && \
+ (DBL_MANT_DIG == LDBL_MANT_DIG && LDBL_MIN_EXP == DBL_MIN_EXP && \
+ LDBL_MAX_EXP == DBL_MAX_EXP)
+ #define _LDBL_EQ_DBL
+#endif