Browse Source

k_standard.c: guard scalb[f] related (unused) code with SUSV3_LEGACY

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 13 years ago
parent
commit
ed5c73b005
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libm/k_standard.c

+ 2 - 0
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) */