From 601c814603801ad3af78e37d26c87a4470156738 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 13 Feb 2015 15:26:53 +0000 Subject: minimal: Allow to compile without defining MICROPY_HAL_H. --- stmhal/printf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stmhal') diff --git a/stmhal/printf.c b/stmhal/printf.c index 7af4f659d..038ee9937 100644 --- a/stmhal/printf.c +++ b/stmhal/printf.c @@ -30,7 +30,9 @@ #include "py/obj.h" #include "py/pfenv.h" +#ifdef MICROPY_HAL_H #include MICROPY_HAL_H +#endif #if MICROPY_PY_BUILTINS_FLOAT #include "py/formatfloat.h" -- cgit v1.2.3