Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
1a3dce4184
1 mainītis faili ar 5 papildinājumiem un 2 dzēšanām
  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);