summaryrefslogtreecommitdiff
path: root/libm/nan.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/nan.c')
-rw-r--r--libm/nan.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libm/nan.c b/libm/nan.c
index 16e5c1772..662a25d33 100644
--- a/libm/nan.c
+++ b/libm/nan.c
@@ -31,7 +31,9 @@ double nan (const char *tagp)
}
return NAN;
}
+libm_hidden_def(nan)
+libm_hidden_proto(nanf)
float nanf (const char *tagp)
{
if (tagp[0] != '\0') {
@@ -41,8 +43,9 @@ float nanf (const char *tagp)
}
return NAN;
}
+libm_hidden_def(nanf)
-#if 0
+#if defined __UCLIBC_HAS_LONG_DOUBLE_MATH__
long double nanl (const char *tagp)
{
if (tagp[0] != '\0') {
@@ -52,4 +55,5 @@ long double nanl (const char *tagp)
}
return NAN;
}
+libm_hidden_def(nanl)
#endif