mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #3794 from dabroz/fix-flt-epsilon
Fix building with MRB_USE_FLOAT=1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user