Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
1a3dce4184
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  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);