Browse Source

one more fenv availability issue: lround

Rich Felker 13 years ago
parent
commit
d3fc724759
1 changed files with 2 additions and 0 deletions
  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;
 	}
 }