rework langinfo code for ABI compat and for use by time code
[musl] / src / math / lgamma.c
index 9af7eee..e25ec8e 100644 (file)
@@ -1,10 +1,9 @@
-#define _GNU_SOURCE
-#include "libm.h"
+#include <math.h>
+
+extern int __signgam;
+double __lgamma_r(double, int *);
 
 double lgamma(double x)
 {
-       return lgamma_r(x, &signgam);
+       return __lgamma_r(x, &__signgam);
 }
-
-// FIXME
-//weak_alias(lgamma, gamma);