diff options
author | Damien George <damien@micropython.org> | 2022-11-11 15:43:55 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-11-11 16:24:32 +1100 |
commit | a513558e3a72b47880faa847de64949e7fc746f6 (patch) | |
tree | adbada6a58ec0a3d2f7c457a1f5b0f838b7cebd7 /extmod/uos_dupterm.c | |
parent | 2f0565367339595bf3130acf8e20d3d4e9bad499 (diff) |
extmod: Add and reorganise compilation guards and includes.
To reduce dependencies on header files when extmod components are disabled.
Signed-off-by: Damien George <damien.p.george@gmail.com>
Diffstat (limited to 'extmod/uos_dupterm.c')
-rw-r--r-- | extmod/uos_dupterm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extmod/uos_dupterm.c b/extmod/uos_dupterm.c index 826bf1715..981d05a63 100644 --- a/extmod/uos_dupterm.c +++ b/extmod/uos_dupterm.c @@ -33,10 +33,11 @@ #include "py/objarray.h" #include "py/stream.h" #include "extmod/misc.h" -#include "shared/runtime/interrupt_char.h" #if MICROPY_PY_OS_DUPTERM +#include "shared/runtime/interrupt_char.h" + void mp_uos_deactivate(size_t dupterm_idx, const char *msg, mp_obj_t exc) { mp_obj_t term = MP_STATE_VM(dupterm_objs[dupterm_idx]); MP_STATE_VM(dupterm_objs[dupterm_idx]) = MP_OBJ_NULL; |