8000 windows: Fix build with new VFS POSIX file. · micropython/micropython@9a26034 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 9a26034

Browse files
committed
windows: Fix build with new VFS POSIX file.
1 parent 9db83bb commit 9a26034

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/windows/mpconfigport.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
#define MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE (1)
6363
#define MICROPY_MODULE_WEAK_LINKS (1)
6464
#define MICROPY_CAN_OVERRIDE_BUILTINS (1)
65+
#define MICROPY_VFS_POSIX_FILE (1)
6566
#define MICROPY_PY_FUNCTION_ATTRS (1)
6667
#define MICROPY_PY_DESCRIPTORS (1)
6768
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
@@ -133,6 +134,9 @@ extern const struct _mp_print_t mp_stderr_print;
133134
#define MICROPY_EMERGENCY_EXCEPTION_BUF_SIZE (256)
134135
#define MICROPY_KBD_EXCEPTION (1)
135136

137+
#define mp_type_fileio mp_type_vfs_posix_fileio
138+
#define mp_type_textio mp_type_vfs_posix_textio
139+
136140
#define MICROPY_PORT_INIT_FUNC init()
137141
#define MICROPY_PORT_DEINIT_FUNC deinit()
138142

0 commit comments

Comments
 (0)
0