aboutsummaryrefslogtreecommitdiff
path: root/math/w_fmod_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/w_fmod_compat.c')
-rw-r--r--math/w_fmod_compat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/math/w_fmod_compat.c b/math/w_fmod_compat.c
index 1079d3a603..f75b8615d0 100644
--- a/math/w_fmod_compat.c
+++ b/math/w_fmod_compat.c
@@ -20,6 +20,7 @@
#include <math_private.h>
#include <math-svid-compat.h>
+#if LIBM_SVID_COMPAT
/* wrapper fmod */
double
__fmod (double x, double y)
@@ -32,7 +33,8 @@ __fmod (double x, double y)
return __ieee754_fmod (x, y);
}
weak_alias (__fmod, fmod)
-#ifdef NO_LONG_DOUBLE
+# ifdef NO_LONG_DOUBLE
strong_alias (__fmod, __fmodl)
weak_alias (__fmod, fmodl)
+# endif
#endif