summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-17 18:27:25 +0000
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-02-17 18:27:25 +0000
commit7ebfbe29400512e3e61d68f8eceba7c745a90469 (patch)
tree3864ed02717c13eab4d449bf5ed54609cfe3ab00
parent748b5e3d2d70e47ab72ed44a371bd0db9a3a0c20 (diff)
libm: fix compile error
Fix a compile error when __UCLIBC_SUSV3_LEGACY__ is disabled. Reported-by: Paolo Mantegazza <paolo.mantegazza@polimi.it>
-rw-r--r--libm/w_scalb.c9
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