From cac2eddc1634e65a1097646d11016298e6375f87 Mon Sep 17 00:00:00 2001 From: Daniel Shaulov Date: Sun, 20 May 2018 21:05:12 +0300 Subject: [PATCH] minimal/main: Allow to compile without GC enabled. --- ports/minimal/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ports/minimal/main.c b/ports/minimal/main.c index 9d43a9cf97..5e145dc829 100644 --- a/ports/minimal/main.c +++ b/ports/minimal/main.c @@ -27,7 +27,9 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) { #endif static char *stack_top; +#if MICROPY_ENABLE_GC static char heap[2048]; +#endif int main(int argc, char **argv) { int stack_dummy;