From 100cd36a0eb45fe4afdfe0c0f7d30a664fb6d7d3 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky <pfalcon@users.sourceforge.net> Date: Sat, 26 Apr 2014 20:59:39 +0300 Subject: [PATCH] objstringio: Compile only if MICROPY_ENABLE_MOD_IO defined. --- py/objstringio.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/py/objstringio.c b/py/objstringio.c index cf39196aae..a3a7566300 100644 --- a/py/objstringio.c +++ b/py/objstringio.c @@ -9,6 +9,8 @@ #include "runtime.h" #include "stream.h" +#if MICROPY_ENABLE_MOD_IO + typedef struct _mp_obj_stringio_t { mp_obj_base_t base; vstr_t *vstr; @@ -117,3 +119,5 @@ const mp_obj_type_t mp_type_stringio = { .stream_p = &stringio_stream_p, .locals_dict = (mp_obj_t)&stringio_locals_dict, }; + +#endif