diff options
Diffstat (limited to 'libm')
-rw-r--r-- | libm/w_scalb.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libm/w_scalb.c b/libm/w_scalb.c index b89bd3052..8fe8caed9 100644 --- a/libm/w_scalb.c +++ b/libm/w_scalb.c @@ -19,6 +19,8 @@ #include <math.h> #include "math_private.h" +#if defined __UCLIBC_SUSV3_LEGACY__ + #if defined(__UCLIBC_HAS_FENV__) #include <errno.h> @@ -42,11 +44,6 @@ sysv_scalb (double x, double fn) } #endif /* __UCLIBC_HAS_FENV__ */ -/* Here might be a check like "#if defined __UCLIBC_SUSV3_LEGACY__" - * but because there is a sysv_scalb() func, it was decided - * not to check yhis macro. - */ - /* Wrapper scalb */ double scalb (double x, double fn) @@ -83,4 +80,6 @@ scalb (double x, double fn) return __ieee754_scalb (x, fn); #endif /* __UCLIBC_HAS_FENV__ */ } + libm_hidden_def(scalb) +#endif |