summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorXiang Xiao <xiaoxiang@xiaomi.com>2021-01-11 14:10:25 +0800
committerDamien George <damien@micropython.org>2021-02-04 22:37:26 +1100
commit5fdf351178df9a18df624ae0f5947d8a5a6bce40 (patch)
tree449d61a9d7a180682dfca570787f87f4eae5cad0
parent7f7b4f2bc68a06c9f47d6b99e953cac0b21c26c9 (diff)
downloadmicropython-5fdf351178df9a18df624ae0f5947d8a5a6bce40.tar.gz
micropython-5fdf351178df9a18df624ae0f5947d8a5a6bce40.zip
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 <xiaoxiang@xiaomi.com>
-rw-r--r--ports/esp8266/gccollect.c1
-rw-r--r--py/gc.h4
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 <stdio.h>
+#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 <stdbool.h>
#include <stdint.h>
-#include "py/mpconfig.h"
-#include "py/misc.h"
-
void gc_init(void *start, void *end);
// These lock/unlock functions can be nested.