Skip to content

Commit d51dbeb

Browse files
committed
Merge pull request micropython#550 from stinos/mingw-open
mingw: Add 'open' as extra builtin
2 parents a6cadad + 5513194 commit d51dbeb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

windows/mpconfigport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#define MICROPY_DEBUG_PRINTERS (1)
1313
#define MICROPY_ENABLE_REPL_HELPERS (1)
1414
#define MICROPY_ENABLE_LEXER_UNIX (1)
15+
#define MICROPY_MOD_SYS_STDFILES (1)
1516
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
1617
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
1718

@@ -33,3 +34,5 @@ typedef void *machine_ptr_t; // must be of pointer size
3334
typedef const void *machine_const_ptr_t; // must be of pointer size
3435

3536
extern const struct _mp_obj_fun_native_t mp_builtin_open_obj;
37+
#define MICROPY_EXTRA_BUILTINS \
38+
{ MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },

0 commit comments

Comments
 (0)