ソースを参照

make signgam a weak alias for an internal symbol

otherwise, the standard C lgamma function will clobber a symbol in the
namespace reserved for the application.
Rich Felker 13 年 前
コミット
1a3dce4184
1 ファイル変更5 行追加2 行削除
  1. 5 2
      src/math/signgam.c

+ 5 - 2
src/math/signgam.c

@@ -1,2 +1,5 @@
-#include <math.h>
-int signgam = 0;
+#include "libm.h"
+
+int __signgam = 0;
+
+weak_alias(__signgam, signgam);