From 7ebfbe29400512e3e61d68f8eceba7c745a90469 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 17 Feb 2018 18:27:25 +0000 Subject: libm: fix compile error Fix a compile error when __UCLIBC_SUSV3_LEGACY__ is disabled. Reported-by: Paolo Mantegazza --- libm/w_scalb.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libm') 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 #include "math_private.h" +#if defined __UCLIBC_SUSV3_LEGACY__ + #if defined(__UCLIBC_HAS_FENV__) #include @@ -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 -- cgit v1.2.3