diff options
| author | Damien George | 2015-02-13 15:26:53 +0000 |
|---|---|---|
| committer | Damien George | 2015-02-13 15:26:53 +0000 |
| commit | 601c814603801ad3af78e37d26c87a4470156738 (patch) | |
| tree | 4e6f5b1b6cdd15b8c7c6967da1d66aa90f81115e /stmhal | |
| parent | ccf45a42833355100c1cebb5851fa36494914ce1 (diff) | |
minimal: Allow to compile without defining MICROPY_HAL_H.
Diffstat (limited to 'stmhal')
| -rw-r--r-- | stmhal/printf.c | 2 |
1 files changed, 2 insertions, 0 deletions
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" |
