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. --- mrbgems/mruby-cmath/src/cmath.c | 1 - 1 file changed, 1 deletion(-) (limited to 'mrbgems/mruby-cmath') diff --git a/mrbgems/mruby-cmath/src/cmath.c b/mrbgems/mruby-cmath/src/cmath.c index 03b181840..8b0c4d04a 100644 --- a/mrbgems/mruby-cmath/src/cmath.c +++ b/mrbgems/mruby-cmath/src/cmath.c @@ -15,7 +15,6 @@ # error CMath conflicts with 'MRB_NO_FLOAT' configuration #endif -#include #include mrb_value mrb_complex_new(mrb_state *mrb, mrb_float real, mrb_float imag); -- cgit v1.2.3