diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-07-13 23:24:08 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-07-13 23:34:35 +0300 |
commit | dce8876dbe272d34d8d28aac21b4a4c3bdea0317 (patch) | |
tree | 0a074d1096f8222b12d061c10047513188128857 /unix | |
parent | ac736f15c995466a0852506438d95934d65d2179 (diff) | |
download | micropython-dce8876dbe272d34d8d28aac21b4a4c3bdea0317.tar.gz micropython-dce8876dbe272d34d8d28aac21b4a4c3bdea0317.zip |
unix: file: No fsync() on Windows.v1.2
Diffstat (limited to 'unix')
-rw-r--r-- | unix/file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/file.c b/unix/file.c index 433decfc33..056a7b6e84 100644 --- a/unix/file.c +++ b/unix/file.c @@ -83,8 +83,12 @@ STATIC mp_int_t fdfile_write(mp_obj_t o_in, const void *buf, mp_uint_t size, int } STATIC mp_obj_t fdfile_flush(mp_obj_t self_in) { +#ifndef _WIN32 mp_obj_fdfile_t *self = self_in; fsync(self->fd); +#else + //TODO +#endif return mp_const_none; } STATIC MP_DEFINE_CONST_FUN_OBJ_1(fdfile_flush_obj, fdfile_flush); |