diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-10-24 10:12:22 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2014-01-14 02:21:11 +0700 |
commit | cd21e58d9e4bda0365696ed7873f7520f8ebf20b (patch) | |
tree | f9ccee7d4808062f68a9ec2e2ec18c3cfdeae7e5 /system/lib/libc/musl/src/math/lgamma.c | |
parent | b167b3c7519c903db2bc9fae51f1a2a2ae1c90e8 (diff) |
Make lgamma and friends work, add test.
We can't use weak aliases on variables in emscripten, so get rid of __signgam
and just use signgam.
Diffstat (limited to 'system/lib/libc/musl/src/math/lgamma.c')
-rw-r--r-- | system/lib/libc/musl/src/math/lgamma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/lib/libc/musl/src/math/lgamma.c b/system/lib/libc/musl/src/math/lgamma.c index e25ec8e6..36006682 100644 --- a/system/lib/libc/musl/src/math/lgamma.c +++ b/system/lib/libc/musl/src/math/lgamma.c @@ -1,9 +1,9 @@ #include <math.h> -extern int __signgam; +extern int signgam; double __lgamma_r(double, int *); double lgamma(double x) { - return __lgamma_r(x, &__signgam); + return __lgamma_r(x, &signgam); } |