summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-08-26 22:29:00 +0900
committerGitHub <[email protected]>2017-08-26 22:29:00 +0900
commitccd555421a0e98ecb07226a47910dc14524acec0 (patch)
tree6edbaf1a1139610c3259813e822fb04e88f6f9e4 /include
parent85a400e43d6b5c7ea193c65c70cdcd611869298b (diff)
parent01b9b71902433d9f3686af079259877f816fddc1 (diff)
downloadmruby-ccd555421a0e98ecb07226a47910dc14524acec0.tar.gz
mruby-ccd555421a0e98ecb07226a47910dc14524acec0.zip
Merge pull request #3794 from dabroz/fix-flt-epsilon
Fix building with MRB_USE_FLOAT=1
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 1a6289e5c..ced9c104d 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -65,6 +65,9 @@
#include "mrbconf.h"
+#ifndef FLT_EPSILON
+#define FLT_EPSILON (1.19209290e-07f)
+#endif
#ifndef DBL_EPSILON
#define DBL_EPSILON ((double)2.22044604925031308085e-16L)
#endif