瀏覽代碼

one more fenv availability issue: lround

Rich Felker 13 年之前
父節點
當前提交
d3fc724759
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;
 	}
 }