diff options
Diffstat (limited to 'uisimulator/common')
-rw-r--r-- | uisimulator/common/io.c | 4 | ||||
-rw-r--r-- | uisimulator/common/lcd-common.c | 4 |
2 files changed, 7 insertions, 1 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) |
diff --git a/uisimulator/common/lcd-common.c b/uisimulator/common/lcd-common.c index 119c440318..a28e619706 100644 --- a/uisimulator/common/lcd-common.c +++ b/uisimulator/common/lcd-common.c | |||
@@ -24,7 +24,9 @@ | |||
24 | 24 | ||
25 | #include "lcd.h" | 25 | #include "lcd.h" |
26 | 26 | ||
27 | #if defined(WIN32) && !defined(SDL) | 27 | #if defined(SDL) |
28 | #include "lcd-sdl.h" | ||
29 | #elif defined(WIN32) | ||
28 | #include "lcd-win32.h" | 30 | #include "lcd-win32.h" |
29 | #else | 31 | #else |
30 | #include "lcd-x11.h" | 32 | #include "lcd-x11.h" |