objstringio: Compile only if MICROPY_ENABLE_MOD_IO defined.

This commit is contained in:
Paul Sokolovsky 2014-04-26 20:59:39 +03:00
parent cb9dc086a3
commit 100cd36a0e
1 changed files with 4 additions and 0 deletions

View File

@ -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