From 5fdf351178df9a18df624ae0f5947d8a5a6bce40 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 11 Jan 2021 14:10:25 +0800 Subject: [PATCH] py/gc: Don't include mpconfig.h and misc.h in gc.h. Because gc.h doesn't reference any symbol from these header files. Signed-off-by: Xiang Xiao --- ports/esp8266/gccollect.c | 1 + py/gc.h | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ports/esp8266/gccollect.c b/ports/esp8266/gccollect.c index 3618a56644..bca0e030cb 100644 --- a/ports/esp8266/gccollect.c +++ b/ports/esp8266/gccollect.c @@ -26,6 +26,7 @@ #include +#include "py/mpconfig.h" #include "py/gc.h" #include "gccollect.h" diff --git a/py/gc.h b/py/gc.h index 4690d39370..f67fb0daad 100644 --- a/py/gc.h +++ b/py/gc.h @@ -26,11 +26,9 @@ #ifndef MICROPY_INCLUDED_PY_GC_H #define MICROPY_INCLUDED_PY_GC_H +#include #include -#include "py/mpconfig.h" -#include "py/misc.h" - void gc_init(void *start, void *end); // These lock/unlock functions can be nested.