other side of the signgam namespace fix: use the internal name
authorRich Felker <dalias@aerifal.cx>
Sat, 17 Mar 2012 01:20:53 +0000 (21:20 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 17 Mar 2012 01:20:53 +0000 (21:20 -0400)
src/math/lgamma.c
src/math/lgammaf.c
src/math/lgammal.c

index 17b5aff06ec5d7b2860aa3f7fa4a3d7727d1dfc3..d8b85312b82494b8afcedc41c20590ee96a7ae78 100644 (file)
@@ -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
index 932535344cf16c85fe9b86a814b8b8306fd5ddd6..b3d996cf29ec42e810f549e4369bb20915ab9e4b 100644 (file)
@@ -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
index 5dd851a67cecfdffc7cc62cc097807c82a1bbb8e..ec7c9a0425d524555656e9bbbd860aa02bfdb7b0 100644 (file)
@@ -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);