diff options
| author | dearblue <[email protected]> | 2021-08-21 15:42:57 +0900 |
|---|---|---|
| committer | dearblue <[email protected]> | 2021-08-21 15:42:57 +0900 |
| commit | 5a576028607c4bd7b46e8b1d2726329355d4bc03 (patch) | |
| tree | 9c459b43e52d4421e66ff05a3955dc3f234854a6 /mrbgems/mruby-complex | |
| parent | 886055b3fb047839abe13b03dd44d9e35c35d5b0 (diff) | |
| download | mruby-5a576028607c4bd7b46e8b1d2726329355d4bc03.tar.gz mruby-5a576028607c4bd7b46e8b1d2726329355d4bc03.zip | |
Organize the include of header files
- `#include <math.h>` 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.
Diffstat (limited to 'mrbgems/mruby-complex')
| -rw-r--r-- | mrbgems/mruby-complex/src/complex.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mrbgems/mruby-complex/src/complex.c b/mrbgems/mruby-complex/src/complex.c index 286e7e38e..66176c3c1 100644 --- a/mrbgems/mruby-complex/src/complex.c +++ b/mrbgems/mruby-complex/src/complex.c @@ -2,7 +2,6 @@ #include <mruby/class.h> #include <mruby/numeric.h> #include <mruby/presym.h> -#include <math.h> #ifdef MRB_NO_FLOAT # error Complex conflicts with 'MRB_NO_FLOAT' configuration |
