• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版7ebfbe29400512e3e61d68f8eceba7c745a90469 (tree)
时间2018-02-18 03:27:25
作者Waldemar Brodkorb <wbx@ucli...>
CommiterWaldemar Brodkorb

Log Message

libm: fix compile error

Fix a compile error when UCLIBC_SUSV3_LEGACY is disabled.

Reported-by: Paolo Mantegazza <paolo.mantegazza@polimi.it>

更改概述

差异

--- a/libm/w_scalb.c
+++ b/libm/w_scalb.c
@@ -19,6 +19,8 @@
1919 #include <math.h>
2020 #include "math_private.h"
2121
22+#if defined __UCLIBC_SUSV3_LEGACY__
23+
2224 #if defined(__UCLIBC_HAS_FENV__)
2325 #include <errno.h>
2426
@@ -42,11 +44,6 @@ sysv_scalb (double x, double fn)
4244 }
4345 #endif /* __UCLIBC_HAS_FENV__ */
4446
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-
5047 /* Wrapper scalb */
5148 double
5249 scalb (double x, double fn)
@@ -83,4 +80,6 @@ scalb (double x, double fn)
8380 return __ieee754_scalb (x, fn);
8481 #endif /* __UCLIBC_HAS_FENV__ */
8582 }
83+
8684 libm_hidden_def(scalb)
85+#endif