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 d4eae04c39..66e0139537 100644
--- a/firmware/common/file.h
+++ b/firmware/common/file.h
@@ -38,7 +38,15 @@
38#define O_RDWR 2 38#define O_RDWR 2
39#endif 39#endif
40 40
41#if !defined(SIMULATOR) || defined(__MINGW32__) 41#if defined(__MINGW32__) && defined(SIMULATOR)
42int open (const char*, int, ...);
43extern int close(int fd);
44int read (int, void*, unsigned int);
45long lseek (int, long, int);
46
47#else
48
49#ifndef SIMULATOR
42extern int open(char* pathname, int flags); 50extern int open(char* pathname, int flags);
43extern int close(int fd); 51extern int close(int fd);
44extern int read(int fd, void* buf, int count); 52extern int read(int fd, void* buf, int count);
@@ -57,4 +65,6 @@ extern int rename(char* oldname, char* newname);
57#endif /* WIN32 */ 65#endif /* WIN32 */
58#endif /* SIMULATOR */ 66#endif /* SIMULATOR */
59 67
68#endif /* __MINGW32__ */
69
60#endif 70#endif