[git commit future 1/1] k_standard.c: guard scalb[f] related (unused) code with SUSV3_LEGACY

Peter S. Mazinger ps.m at gmx.net
Tue Mar 15 05:45:33 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=3d526a46ddaf1ae541526f1f1dd6001fd1e058ce
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libm/k_standard.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libm/k_standard.c b/libm/k_standard.c
index d9ab745..29e662d 100644
--- a/libm/k_standard.c
+++ b/libm/k_standard.c
@@ -598,6 +598,7 @@ double __kernel_standard(double x, double y, int type)
                   errno = EDOM;
                 }
                 break;
+# ifdef __UCLIBC_SUSV3_LEGACY__
 	    case 32:
 	    case 132:
 		/* scalb overflow; SVID also returns +-HUGE_VAL */
@@ -622,6 +623,7 @@ double __kernel_standard(double x, double y, int type)
 			errno = ERANGE;
 		}
 		break;
+# endif
 	    case 34:
 	    case 134:
 		/* j0(|x|>X_TLOSS) */
-- 
1.7.3.4



More information about the uClibc-cvs mailing list