summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-07-24 19:03:32 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-07-25 13:07:10 +0900
commit5c804cf68f2b7e80780d3d812efb70ef9e376c08 (patch)
treea2a135237c605849eda427e267e71770a09df330 /src/gc.c
parent1f90a397994376451e1efd2055c25a240832d5a1 (diff)
downloadmruby-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/gc.c')
-rw-r--r--src/gc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gc.c b/src/gc.c
index bcd0b29b6..a40bd8545 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -5,7 +5,6 @@
*/
#include <string.h>
-#include <stdlib.h>
#ifdef MRB_USE_MALLOC_TRIM
#include <malloc.h>
#endif
@@ -24,6 +23,10 @@
#include <mruby/throw.h>
#include <mruby/presym.h>
+#ifdef MRB_GC_STRESS
+#include <stdlib.h>
+#endif
+
/*
= Tri-color Incremental Garbage Collection