修订版 | 7ebfbe29400512e3e61d68f8eceba7c745a90469 (tree) |
---|---|
时间 | 2018-02-18 03:27:25 |
作者 | Waldemar Brodkorb <wbx@ucli...> |
Commiter | Waldemar Brodkorb |
libm: fix compile error
Fix a compile error when UCLIBC_SUSV3_LEGACY is disabled.
Reported-by: Paolo Mantegazza <paolo.mantegazza@polimi.it>
@@ -19,6 +19,8 @@ | ||
19 | 19 | #include <math.h> |
20 | 20 | #include "math_private.h" |
21 | 21 | |
22 | +#if defined __UCLIBC_SUSV3_LEGACY__ | |
23 | + | |
22 | 24 | #if defined(__UCLIBC_HAS_FENV__) |
23 | 25 | #include <errno.h> |
24 | 26 |
@@ -42,11 +44,6 @@ sysv_scalb (double x, double fn) | ||
42 | 44 | } |
43 | 45 | #endif /* __UCLIBC_HAS_FENV__ */ |
44 | 46 | |
45 | -/* Here might be a check like "#if defined __UCLIBC_SUSV3_LEGACY__" | |
46 | - * but because there is a sysv_scalb() func, it was decided | |
47 | - * not to check yhis macro. | |
48 | - */ | |
49 | - | |
50 | 47 | /* Wrapper scalb */ |
51 | 48 | double |
52 | 49 | scalb (double x, double fn) |
@@ -83,4 +80,6 @@ scalb (double x, double fn) | ||
83 | 80 | return __ieee754_scalb (x, fn); |
84 | 81 | #endif /* __UCLIBC_HAS_FENV__ */ |
85 | 82 | } |
83 | + | |
86 | 84 | libm_hidden_def(scalb) |
85 | +#endif |