about summary refs log tree commit diff
path: root/sysdeps/libm-ieee754/w_gamma.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-ieee754/w_gamma.c')
-rw-r--r--sysdeps/libm-ieee754/w_gamma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/libm-ieee754/w_gamma.c b/sysdeps/libm-ieee754/w_gamma.c
index 5c3f27a8c1..02a3d47669 100644
--- a/sysdeps/libm-ieee754/w_gamma.c
+++ b/sysdeps/libm-ieee754/w_gamma.c
@@ -30,10 +30,12 @@ static char rcsid[] = "$NetBSD: w_gamma.c,v 1.7 1995/11/20 22:06:43 jtc Exp $";
 #endif
 {
         double y;
+#ifndef _IEEE_LIBM
 	if (_LIB_VERSION == _SVID_)
 	  y = __ieee754_lgamma_r(x,&signgam);
 	else
 	  {
+#endif
 	    int local_signgam;
 	    y = __ieee754_gamma_r(x,&local_signgam);
 	    if (local_signgam < 0) y = -y;