Commit 100cd36a authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

objstringio: Compile only if MICROPY_ENABLE_MOD_IO defined.

parent cb9dc086
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment