mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix mrbgems/mruby-range-ext/src/range.c:142:71: error: use of undeclared identifier 'FLT_EPSILON'
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