diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-01-30 17:16:12 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-01-30 17:16:12 +0900 |
| commit | c8f4d72302e43678384c1e04702ba10ed2567a3d (patch) | |
| tree | dc43e6198fdfdf4042e8d9fd9df81fa5534c213d /include | |
| parent | 7771c215e494cf1f4b30a96bf1603014cc75ff2a (diff) | |
| download | mruby-c8f4d72302e43678384c1e04702ba10ed2567a3d.tar.gz mruby-c8f4d72302e43678384c1e04702ba10ed2567a3d.zip | |
Move fallback definitions of `FLT_EPSILON` etc. after `#include <mruby/value.h>`
that includes `float.h`. It allows definitions from native headers.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/mruby.h b/include/mruby.h index 671053ff9..7419618fd 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -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 */ |
