From 5a576028607c4bd7b46e8b1d2726329355d4bc03 Mon Sep 17 00:00:00 2001 From: dearblue Date: Sat, 21 Aug 2021 15:42:57 +0900 Subject: Organize the include of header files - `#include ` is done in `mruby.h`. Eliminate the need to worry about the `MRB_NO_FLOAT` macro. - Include mruby header files before standard header files. If the standard header file is already placed before `mruby.h`, the standard header file added in the future tends to be placed before `mruby.h`. This change should some reduce the chances of macros that must be defined becoming undefined in C++ or including problematic header files in a particular mruby build configuration. --- src/vm.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/vm.c') diff --git a/src/vm.c b/src/vm.c index 57531797c..50ad3b31d 100644 --- a/src/vm.c +++ b/src/vm.c @@ -20,9 +20,6 @@ #include #include #include -#ifndef MRB_NO_FLOAT -#include -#endif #ifdef MRB_NO_STDIO #if defined(__cplusplus) -- cgit v1.2.3