Parcourir la source

one more fenv availability issue: lround

Rich Felker il y a 13 ans
Parent
commit
d3fc724759
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/math/lround.c

+ 2 - 0
src/math/lround.c

@@ -58,7 +58,9 @@ dtype fn(type x)
 		x = roundit(x);
 		return (dtype)x;
 	} else {
+#ifdef FE_INVALID
 		feraiseexcept(FE_INVALID);
+#endif
 		return DTYPE_MAX;
 	}
 }