make signgam a weak alias for an internal symbol
authorRich Felker <dalias@aerifal.cx>
Sat, 17 Mar 2012 01:18:48 +0000 (21:18 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 17 Mar 2012 01:18:48 +0000 (21:18 -0400)
otherwise, the standard C lgamma function will clobber a symbol in the
namespace reserved for the application.

src/math/signgam.c

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