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 /include | |
| 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 'include')
| -rw-r--r-- | include/mrbconf.h | 3 | ||||
| -rw-r--r-- | include/mruby/numeric.h | 2 | ||||
| -rw-r--r-- | include/mruby/value.h | 2 |
3 files changed, 0 insertions, 7 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h index 2a320f371..5d54a1c22 100644 --- a/include/mrbconf.h +++ b/include/mrbconf.h @@ -7,9 +7,6 @@ #ifndef MRUBYCONF_H #define MRUBYCONF_H -#include <limits.h> -#include <stdint.h> - /* architecture selection: */ /* specify -DMRB_32BIT or -DMRB_64BIT to override */ #if !defined(MRB_32BIT) && !defined(MRB_64BIT) diff --git a/include/mruby/numeric.h b/include/mruby/numeric.h index e09a797ed..4b14588ac 100644 --- a/include/mruby/numeric.h +++ b/include/mruby/numeric.h @@ -133,8 +133,6 @@ mrb_int_mul_overflow(mrb_int a, mrb_int b, mrb_int *c) #endif #ifndef MRB_NO_FLOAT -# include <stdint.h> -# include <float.h> # define MRB_FLT_RADIX FLT_RADIX diff --git a/include/mruby/value.h b/include/mruby/value.h index d65da30fb..35d4b7005 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -111,13 +111,11 @@ MRB_API double mrb_float_read(const char*, char**); #endif #if defined _MSC_VER && _MSC_VER < 1900 -# include <stdarg.h> MRB_API int mrb_msvc_vsnprintf(char *s, size_t n, const char *format, va_list arg); MRB_API int mrb_msvc_snprintf(char *s, size_t n, const char *format, ...); # define vsnprintf(s, n, format, arg) mrb_msvc_vsnprintf(s, n, format, arg) # define snprintf(s, n, format, ...) mrb_msvc_snprintf(s, n, format, __VA_ARGS__) # if _MSC_VER < 1800 && !defined MRB_NO_FLOAT -# include <float.h> # define isfinite(n) _finite(n) # define isnan _isnan # define isinf(n) (!_finite(n) && !_isnan(n)) |
