diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-11-29 14:31:58 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-11-29 14:31:58 +0200 |
commit | fad7d9317b47330533ee6c84ffdaa3e53ad76e46 (patch) | |
tree | bfd9c93a18817aa4dcd05c91c353f5b2299177c7 | |
parent | 0bb57bf5bf1c9822abca524aabd00fe9b861d10d (diff) | |
download | micropython-fad7d9317b47330533ee6c84ffdaa3e53ad76e46.tar.gz micropython-fad7d9317b47330533ee6c84ffdaa3e53ad76e46.zip |
unix/modtime: Unbreak Windows build after changes to check select() result.
-rw-r--r-- | unix/modtime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/modtime.c b/unix/modtime.c index 5d59294f2e..3bf62287a1 100644 --- a/unix/modtime.c +++ b/unix/modtime.c @@ -36,8 +36,9 @@ #include "py/mphal.h" #ifdef _WIN32 -void msec_sleep_tv(struct timeval *tv) { +static inline int msec_sleep_tv(struct timeval *tv) { msec_sleep(tv->tv_sec * 1000.0 + tv->tv_usec / 1000.0); + return 0; } #define sleep_select(a,b,c,d,e) msec_sleep_tv((e)) #else |