summary refs log tree commit diff
path: root/math/w_log2_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_log2_compat.c')
-rw-r--r--math/w_log2_compat.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/math/w_log2_compat.c b/math/w_log2_compat.c
index 6d1f9f2159..ed7076875f 100644
--- a/math/w_log2_compat.c
+++ b/math/w_log2_compat.c
@@ -20,6 +20,7 @@
 #include <math.h>
 #include <math_private.h>
 #include <math-svid-compat.h>
+#include <libm-alias-double.h>
 
 
 #if LIBM_SVID_COMPAT
@@ -43,9 +44,5 @@ __log2 (double x)
 
   return  __ieee754_log2 (x);
 }
-weak_alias (__log2, log2)
-# ifdef NO_LONG_DOUBLE
-strong_alias (__log2, __log2l)
-weak_alias (__log2, log2l)
-# endif
+libm_alias_double (__log2, log2)
 #endif