diff options
-rw-r--r-- | firmware/common/file.h | 12 |
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) |
42 | int open (const char*, int, ...); | ||
43 | extern int close(int fd); | ||
44 | int read (int, void*, unsigned int); | ||
45 | long lseek (int, long, int); | ||
46 | |||
47 | #else | ||
48 | |||
49 | #ifndef SIMULATOR | ||
42 | extern int open(char* pathname, int flags); | 50 | extern int open(char* pathname, int flags); |
43 | extern int close(int fd); | 51 | extern int close(int fd); |
44 | extern int read(int fd, void* buf, int count); | 52 | extern 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 |