about summary refs log tree commit diff
path: root/sysdeps/ia64/fpu/w_lgammaf_main.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-12-29 01:06:30 -0500
committerMike Frysinger <vapier@gentoo.org>2016-01-01 22:17:07 -0500
commit19e075101493016130f8b9321d14084478bd9827 (patch)
tree428cd07798c01a9bc616583c5884c576324a85c4 /sysdeps/ia64/fpu/w_lgammaf_main.c
parente0043e17dfc52fe1702746543127cb4a87232bcd (diff)
downloadglibc-19e075101493016130f8b9321d14084478bd9827.tar.gz
glibc-19e075101493016130f8b9321d14084478bd9827.tar.xz
glibc-19e075101493016130f8b9321d14084478bd9827.zip
ia64: fpu: fix gamma definition handling [BZ #15421]
The rework in commit d709042a6e5ab3c360280faad6f9538a34dc8eea broke
buiding on ia64 due to compat_symbol expanding into ... in some cases.
The common files were wrapped in a BUILD_LGAMMA check, but the ia64
ones were not.  Add that logic to the ia64 files too.
Diffstat (limited to 'sysdeps/ia64/fpu/w_lgammaf_main.c')
-rw-r--r--sysdeps/ia64/fpu/w_lgammaf_main.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/sysdeps/ia64/fpu/w_lgammaf_main.c b/sysdeps/ia64/fpu/w_lgammaf_main.c
index d8e86a6f25..2f3dd41088 100644
--- a/sysdeps/ia64/fpu/w_lgammaf_main.c
+++ b/sysdeps/ia64/fpu/w_lgammaf_main.c
@@ -53,21 +53,25 @@
 
 #include "libm_support.h"
 
+#include <math.h>
+#include <math_private.h>
+
 #include <lgamma-compat.h>
 
 extern float  __libm_lgammaf(float /*x*/, int* /*signgam*/, int /*signgamsz*/);
 
-
+#if BUILD_LGAMMA
 float LGFUNC (lgammaf) (float x)
 {
     return CALL_LGAMMA (float, __libm_lgammaf, x);
 }
-#if USE_AS_COMPAT
+# if USE_AS_COMPAT
 compat_symbol (libm, __lgammaf_compat, lgammaf, LGAMMA_OLD_VER);
-#else
+# else
 versioned_symbol (libm, __ieee754_lgammaf, lgammaf, LGAMMA_NEW_VER);
-#endif
-#if GAMMA_ALIAS
+# endif
+# if GAMMA_ALIAS
 strong_alias (LGFUNC (lgammaf), __ieee754_gammaf)
 weak_alias (__ieee754_gammaf, gammaf)
+# endif
 #endif