aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Terrace <jterrace@gmail.com>2012-01-13 17:32:11 -0500
committerJeff Terrace <jterrace@gmail.com>2012-01-13 17:32:11 -0500
commit89bc4f4a205b5123457462d98242c172c27f3c08 (patch)
treeb7bdd17ab40d645534dcfd6192efc044deda8a66
parent5462298658a497dcb6ca8475664201d0608a37f4 (diff)
Update float.h to define FLT_ROUNDS
-rw-r--r--system/include/bsd/float.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/system/include/bsd/float.h b/system/include/bsd/float.h
index 33e1b9d9..7020cf9a 100644
--- a/system/include/bsd/float.h
+++ b/system/include/bsd/float.h
@@ -42,7 +42,13 @@ int __flt_rounds(void);
__END_DECLS
#define FLT_RADIX 2 /* b */
-#define FLT_ROUNDS __flt_rounds()
+/*
+ * XXX Emscripten
+ * See float.h documentation for these values
+ * 1 seems best for JavaScript instead of:
+ * #define FLT_ROUNDS __flt_rounds()
+ */
+#define FLT_ROUNDS 1
#if __ISO_C_VISIBLE >= 1999
#define FLT_EVAL_METHOD 2 /* long double */
#endif