aboutsummaryrefslogtreecommitdiffstats
path: root/sysdeps/ia64/fpu/w_lgamma_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64/fpu/w_lgamma_main.c')
-rw-r--r--sysdeps/ia64/fpu/w_lgamma_main.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sysdeps/ia64/fpu/w_lgamma_main.c b/sysdeps/ia64/fpu/w_lgamma_main.c
index 0d93bde1eb5..3ad73b6756a 100644
--- a/sysdeps/ia64/fpu/w_lgamma_main.c
+++ b/sysdeps/ia64/fpu/w_lgamma_main.c
@@ -53,21 +53,25 @@
#include "libm_support.h"
+#include <math.h>
+#include <math_private.h>
+
#include <lgamma-compat.h>
extern double __libm_lgamma(double /*x*/, int* /*signgam*/, int /*signgamsz*/);
-
+#if BUILD_LGAMMA
double LGFUNC (lgamma) (double x)
{
return CALL_LGAMMA (double, __libm_lgamma, x);
}
-#if USE_AS_COMPAT
+# if USE_AS_COMPAT
compat_symbol (libm, __lgamma_compat, lgamma, LGAMMA_OLD_VER);
-#else
+# else
versioned_symbol (libm, __ieee754_lgamma, lgamma, LGAMMA_NEW_VER);
-#endif
-#if GAMMA_ALIAS
+# endif
+# if GAMMA_ALIAS
strong_alias (LGFUNC (lgamma), __ieee754_gamma)
weak_alias (__ieee754_gamma, gamma)
+# endif
#endif