summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/common/file.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/firmware/common/file.h b/firmware/common/file.h
index d4eae04..66e0139 100644
--- a/firmware/common/file.h
+++ b/firmware/common/file.h
@@ -38,7 +38,15 @@
#define O_RDWR 2
#endif
-#if !defined(SIMULATOR) || defined(__MINGW32__)
+#if defined(__MINGW32__) && defined(SIMULATOR)
+int open (const char*, int, ...);
+extern int close(int fd);
+int read (int, void*, unsigned int);
+long lseek (int, long, int);
+
+#else
+
+#ifndef SIMULATOR
extern int open(char* pathname, int flags);
extern int close(int fd);
extern int read(int fd, void* buf, int count);
@@ -57,4 +65,6 @@ extern int rename(char* oldname, char* newname);
#endif /* WIN32 */
#endif /* SIMULATOR */
+#endif /* __MINGW32__ */
+
#endif