projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de7db6e
)
make signgam a weak alias for an internal symbol
author
Rich Felker
<dalias@aerifal.cx>
Sat, 17 Mar 2012 01:18:48 +0000
(21:18 -0400)
committer
Rich 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
patch
|
blob
|
history
diff --git
a/src/math/signgam.c
b/src/math/signgam.c
index 12cc32d7cf46fbde227832849be4fe83998e96ae..b39ceb046898f31843f08606e052f0052b76a85e 100644
(file)
--- a/
src/math/signgam.c
+++ b/
src/math/signgam.c
@@
-1,2
+1,5
@@
-#include <math.h>
-int signgam = 0;
+#include "libm.h"
+
+int __signgam = 0;
+
+weak_alias(__signgam, signgam);