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