summaryrefslogtreecommitdiff
path: root/math/w_expf_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_expf_compat.c')
-rw-r--r--math/w_expf_compat.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/math/w_expf_compat.c b/math/w_expf_compat.c
index a38ff4082d..2512498bb3 100644
--- a/math/w_expf_compat.c
+++ b/math/w_expf_compat.c
@@ -20,10 +20,10 @@
#include <math_private.h>
#include <math-svid-compat.h>
-#if LIBM_SVID_COMPAT
+#if LIBM_SVID_COMPAT && SHLIB_COMPAT (libm, GLIBC_2_0, GLIBC_2_27)
/* wrapper expf */
float
-__expf (float x)
+__expf_compat (float x)
{
float z = __ieee754_expf (x);
if (__builtin_expect (!isfinite (z) || z == 0, 0)
@@ -32,6 +32,5 @@ __expf (float x)
return z;
}
-hidden_def (__expf)
-weak_alias (__expf, expf)
+compat_symbol (libm, __expf_compat, expf, GLIBC_2_0);
#endif