diff options
Diffstat (limited to 'uisimulator/common/io.c')
-rw-r--r-- | uisimulator/common/io.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index 4943bc04e2..e18d8e6a57 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c | |||
@@ -71,7 +71,11 @@ typedef struct mydir MYDIR; | |||
71 | #if 1 /* maybe this needs disabling for MSVC... */ | 71 | #if 1 /* maybe this needs disabling for MSVC... */ |
72 | static unsigned int rockbox2sim(int opt) | 72 | static unsigned int rockbox2sim(int opt) |
73 | { | 73 | { |
74 | #ifdef WIN32 | ||
75 | int newopt = O_BINARY; | ||
76 | #else | ||
74 | int newopt = 0; | 77 | int newopt = 0; |
78 | #endif | ||
75 | if(opt & 1) | 79 | if(opt & 1) |
76 | newopt |= O_WRONLY; | 80 | newopt |= O_WRONLY; |
77 | if(opt & 2) | 81 | if(opt & 2) |