From 8c071f872b2844ca297275176047f8d23eec96a7 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 16 Mar 2012 21:20:53 -0400 Subject: [PATCH] other side of the signgam namespace fix: use the internal name --- src/math/lgamma.c | 3 ++- src/math/lgammaf.c | 3 ++- src/math/lgammal.c | 4 +++- 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); -- 2.25.1