summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorstijn <stinos@zoho.com>2014-05-03 09:19:34 +0200
committerstijn <stinos@zoho.com>2014-05-03 10:46:21 +0200
commit55131942733092e5dd20c62cbc072a10c7e45103 (patch)
treed1c15204ea1b9e54deec0adb801cd08e773e483e
parent8f472ad5778876d3d8abcfec9459c0a106f629af (diff)
downloadmicropython-55131942733092e5dd20c62cbc072a10c7e45103.tar.gz
micropython-55131942733092e5dd20c62cbc072a10c7e45103.zip
mingw: Add 'open' as extra builtin and add define MICROPY_MOD_SYS_STDFILES
This one was probable missed when creating mpconfigport.h, but the underlying code (file.c) gets compiled and works perfectly so no reason to omit it.
-rw-r--r--windows/mpconfigport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/windows/mpconfigport.h b/windows/mpconfigport.h
index 993fef9d59..80d8ac89b5 100644
--- a/windows/mpconfigport.h
+++ b/windows/mpconfigport.h
@@ -12,6 +12,7 @@
#define MICROPY_DEBUG_PRINTERS (1)
#define MICROPY_ENABLE_REPL_HELPERS (1)
#define MICROPY_ENABLE_LEXER_UNIX (1)
+#define MICROPY_MOD_SYS_STDFILES (1)
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_DOUBLE)
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ)
@@ -33,3 +34,5 @@ typedef void *machine_ptr_t; // must be of pointer size
typedef const void *machine_const_ptr_t; // must be of pointer size
extern const struct _mp_obj_fun_native_t mp_builtin_open_obj;
+#define MICROPY_EXTRA_BUILTINS \
+ { MP_OBJ_NEW_QSTR(MP_QSTR_open), (mp_obj_t)&mp_builtin_open_obj },