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>
This commit is contained in:
Xiang Xiao 2021-01-11 14:10:25 +08:00 committed by Damien George
parent 7f7b4f2bc6
commit 5fdf351178
2 changed files with 2 additions and 3 deletions

View File

@ -26,6 +26,7 @@
#include <stdio.h>
#include "py/mpconfig.h"
#include "py/gc.h"
#include "gccollect.h"

View File

@ -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.