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

that includes `float.h`. It allows definitions from native headers.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-01-30 17:16:12 +09:00
parent 7771c215e4
commit c8f4d72302
+5 -5
View File
@@ -70,6 +70,11 @@
#include "mrbconf.h"
#include <mruby/common.h>
#include <mruby/value.h>
#include <mruby/gc.h>
#include <mruby/version.h>
#ifndef MRB_WITHOUT_FLOAT
#ifndef FLT_EPSILON
#define FLT_EPSILON (1.19209290e-07f)
@@ -88,11 +93,6 @@
#endif
#endif
#include <mruby/common.h>
#include <mruby/value.h>
#include <mruby/gc.h>
#include <mruby/version.h>
/**
* MRuby C API entry point
*/