Skip to content

Commit 100cd36

Browse files
committed
objstringio: Compile only if MICROPY_ENABLE_MOD_IO defined.
1 parent cb9dc08 commit 100cd36

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

py/objstringio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#include "runtime.h"
1010
#include "stream.h"
1111

12+
#if MICROPY_ENABLE_MOD_IO
13+
1214
typedef struct _mp_obj_stringio_t {
1315
mp_obj_base_t base;
1416
vstr_t *vstr;
@@ -117,3 +119,5 @@ const mp_obj_type_t mp_type_stringio = {
117119
.stream_p = &stringio_stream_p,
118120
.locals_dict = (mp_obj_t)&stringio_locals_dict,
119121
};
122+
123+
#endif

0 commit comments

Comments
 (0)