Move fallback definitions of `FLT_EPSILON` etc. after `#include <mruby/value.h>`

that includes `float.h`. It allows definitions from native headers.
parent 7771c215
...@@ -70,6 +70,11 @@ ...@@ -70,6 +70,11 @@
#include "mrbconf.h" #include "mrbconf.h"
#include <mruby/common.h>
#include <mruby/value.h>
#include <mruby/gc.h>
#include <mruby/version.h>
#ifndef MRB_WITHOUT_FLOAT #ifndef MRB_WITHOUT_FLOAT
#ifndef FLT_EPSILON #ifndef FLT_EPSILON
#define FLT_EPSILON (1.19209290e-07f) #define FLT_EPSILON (1.19209290e-07f)
...@@ -88,11 +93,6 @@ ...@@ -88,11 +93,6 @@
#endif #endif
#endif #endif
#include <mruby/common.h>
#include <mruby/value.h>
#include <mruby/gc.h>
#include <mruby/version.h>
/** /**
* MRuby C API entry point * MRuby C API entry point
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment