projects
/
musl
/ 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
12cc32d
..
b39ceb0
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);