summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2013-11-20 11:39:00 +0000
committerjoerg <joerg@NetBSD.org>2013-11-20 11:39:00 +0000
commitea71d9becfcd9dd1bba9fa8e661ff03df751d1e2 (patch)
tree26ae7ab5b3392278346ab64e481cfa338f4e5eee
parent67200c334e42a99247844aebbf679dc711f15d0b (diff)
Long double conditional.
-rw-r--r--lib/libm/src/w_sqrtl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libm/src/w_sqrtl.c b/lib/libm/src/w_sqrtl.c
index ee04159118c..186b010597b 100644
--- a/lib/libm/src/w_sqrtl.c
+++ b/lib/libm/src/w_sqrtl.c
@@ -11,7 +11,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: w_sqrtl.c,v 1.1 2013/11/19 19:24:34 joerg Exp $");
+__RCSID("$NetBSD: w_sqrtl.c,v 1.2 2013/11/20 11:39:00 joerg Exp $");
/*
* wrapper sqrtl(x)
@@ -21,6 +21,8 @@ __RCSID("$NetBSD: w_sqrtl.c,v 1.1 2013/11/19 19:24:34 joerg Exp $");
#include "math.h"
#include "math_private.h"
+#ifdef __HAVE_LONG_DOUBLE
+
__weak_alias(sqrtl, _sqrtl)
long double
@@ -38,3 +40,5 @@ sqrtl(long double x) /* wrapper sqrtl */
return z;
#endif
}
+
+#endif /* __HAVE_LONG_DOUBLE */