summaryrefslogtreecommitdiff
path: root/firmware/common/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/file.h')
-rw-r--r--firmware/common/file.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/common/file.h b/firmware/common/file.h
index 19717ca525..d4eae04c39 100644
--- a/firmware/common/file.h
+++ b/firmware/common/file.h
@@ -38,7 +38,7 @@
38#define O_RDWR 2 38#define O_RDWR 2
39#endif 39#endif
40 40
41#ifndef SIMULATOR 41#if !defined(SIMULATOR) || defined(__MINGW32__)
42extern int open(char* pathname, int flags); 42extern int open(char* pathname, int flags);
43extern int close(int fd); 43extern int close(int fd);
44extern int read(int fd, void* buf, int count); 44extern int read(int fd, void* buf, int count);
@@ -51,10 +51,10 @@ extern int rename(char* oldname, char* newname);
51#endif 51#endif
52 52
53#else 53#else
54#if defined(WIN32) && !defined(__MINGW32__) 54#ifdef WIN32
55#include <io.h> 55#include <io.h>
56#include <stdio.h> 56#include <stdio.h>
57#endif // WIN32 57#endif /* WIN32 */
58#endif // SIMULATOR 58#endif /* SIMULATOR */
59 59
60#endif 60#endif