diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-07-24 19:03:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-07-25 13:07:10 +0900 |
| commit | 5c804cf68f2b7e80780d3d812efb70ef9e376c08 (patch) | |
| tree | a2a135237c605849eda427e267e71770a09df330 /src/string.c | |
| parent | 1f90a397994376451e1efd2055c25a240832d5a1 (diff) | |
| download | mruby-5c804cf68f2b7e80780d3d812efb70ef9e376c08.tar.gz mruby-5c804cf68f2b7e80780d3d812efb70ef9e376c08.zip | |
Remove redundant include headers.
- stdlib.h
- stddef.h
- stdint.h
- stdarg.h
- limits.h
- float.h
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/string.c b/src/string.c index 03d9c8a9c..2258cc218 100644 --- a/src/string.c +++ b/src/string.c @@ -8,14 +8,6 @@ # define _CRT_NONSTDC_NO_DEPRECATE #endif -#ifndef MRB_NO_FLOAT -#include <float.h> -#include <math.h> -#endif -#include <limits.h> -#include <stddef.h> -#include <stdlib.h> -#include <string.h> #include <mruby.h> #include <mruby/array.h> #include <mruby/class.h> @@ -23,6 +15,10 @@ #include <mruby/string.h> #include <mruby/numeric.h> #include <mruby/presym.h> +#ifndef MRB_NO_FLOAT +#include <math.h> +#endif +#include <string.h> typedef struct mrb_shared_string { int refcnt; |
