Explorar el 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 hace 13 años
padre
commit
1a3dce4184
Se han modificado 1 ficheros con 5 adiciones y 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);