summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstringio.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objstringio.c')
-rw-r--r--py/objstringio.c4
1 files changed, 4 insertions, 0 deletions
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