summaryrefslogtreecommitdiff
path: root/libm
diff options
context:
space:
mode:
Diffstat (limited to 'libm')
-rw-r--r--libm/ldouble_wrappers.c10
-rw-r--r--libm/nan.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/libm/ldouble_wrappers.c b/libm/ldouble_wrappers.c
index 61940cb12..c53b99773 100644
--- a/libm/ldouble_wrappers.c
+++ b/libm/ldouble_wrappers.c
@@ -116,6 +116,16 @@ long long func##l(long double x) \
}
#endif /* __i386__ && __OPTIMIZE__ */
+#if defined __NO_LONG_DOUBLE_MATH
+# define int_WRAPPER_C99(func) /* not needed */
+# else
+# define int_WRAPPER_C99(func) \
+int func##l(long double x) \
+{ \
+ return func((double) x); \
+} \
+libm_hidden_def(func##l)
+#endif
/* Implement the following, as defined by SuSv3 */
#if 0
diff --git a/libm/nan.c b/libm/nan.c
index ec221ea71..eee3b1cc4 100644
--- a/libm/nan.c
+++ b/libm/nan.c
@@ -45,7 +45,7 @@ float nanf (const char *tagp)
}
libm_hidden_def(nanf)
-#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
+#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ && !defined __NO_LONG_DOUBLE_MATH
libm_hidden_proto(nanl)
long double nanl (const char *tagp)
{