summaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'src/math')
-rw-r--r--src/math/lgamma.c3
-rw-r--r--src/math/lgammaf.c3
-rw-r--r--src/math/lgammal.c4
3 files changed, 7 insertions, 3 deletions
diff --git a/src/math/lgamma.c b/src/math/lgamma.c
index 17b5aff0..d8b85312 100644
--- a/src/math/lgamma.c
+++ b/src/math/lgamma.c
@@ -1,10 +1,11 @@
#include "libm.h"
+extern int __signgam;
double __lgamma_r(double, int *);
double lgamma(double x)
{
- return __lgamma_r(x, &signgam);
+ return __lgamma_r(x, &__signgam);
}
// FIXME
diff --git a/src/math/lgammaf.c b/src/math/lgammaf.c
index 93253534..b3d996cf 100644
--- a/src/math/lgammaf.c
+++ b/src/math/lgammaf.c
@@ -1,10 +1,11 @@
#include "libm.h"
+extern int __signgam;
float __lgammaf_r(float, int *);
float lgammaf(float x)
{
- return __lgammaf_r(x, &signgam);
+ return __lgammaf_r(x, &__signgam);
}
// FIXME
diff --git a/src/math/lgammal.c b/src/math/lgammal.c
index 5dd851a6..ec7c9a04 100644
--- a/src/math/lgammal.c
+++ b/src/math/lgammal.c
@@ -388,9 +388,11 @@ long double __lgammal_r(long double x, int *sg) {
}
#endif
+extern int __signgam;
+
long double lgammal(long double x)
{
- return __lgammal_r(x, &signgam);
+ return __lgammal_r(x, &__signgam);
}
weak_alias(__lgammal_r, lgammal_r);