mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
unix: Add target to build "minimal" uPy interpreter.
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
#include "py/stream.h"
|
||||
#include "py/builtin.h"
|
||||
|
||||
#if MICROPY_PY_IO
|
||||
|
||||
#ifdef _WIN32
|
||||
#define fsync _commit
|
||||
#endif
|
||||
@@ -264,3 +266,5 @@ MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);
|
||||
const mp_obj_fdfile_t mp_sys_stdin_obj = { .base = {&mp_type_textio}, .fd = STDIN_FILENO };
|
||||
const mp_obj_fdfile_t mp_sys_stdout_obj = { .base = {&mp_type_textio}, .fd = STDOUT_FILENO };
|
||||
const mp_obj_fdfile_t mp_sys_stderr_obj = { .base = {&mp_type_textio}, .fd = STDERR_FILENO };
|
||||
|
||||
#endif // MICROPY_PY_IO
|
||||
|
||||
Reference in New Issue
Block a user