mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add fallback definitions of DBL_EPSILPN and LDBL_EPSILON; fix #3733
This is a workaround for mingw-w64 (5.3.1) bug.
This commit is contained in:
@@ -65,6 +65,13 @@
|
||||
|
||||
#include "mrbconf.h"
|
||||
|
||||
#ifndef DBL_EPSILON
|
||||
#define DBL_EPSILON ((double)2.22044604925031308085e-16L)
|
||||
#endif
|
||||
#ifndef LDBL_EPSILON
|
||||
#define LDBL_EPSILON (1.08420217248550443401e-19L)
|
||||
#endif
|
||||
|
||||
#ifdef MRB_USE_FLOAT
|
||||
#define MRB_FLOAT_EPSILON FLT_EPSILON
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user