diff options
-rw-r--r-- | firmware/common/file.h | 8 |
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 @@ #define O_RDWR 2 #endif -#ifndef SIMULATOR +#if !defined(SIMULATOR) || defined(__MINGW32__) extern int open(char* pathname, int flags); extern int close(int fd); extern int read(int fd, void* buf, int count); @@ -51,10 +51,10 @@ extern int rename(char* oldname, char* newname); #endif #else -#if defined(WIN32) && !defined(__MINGW32__) +#ifdef WIN32 #include <io.h> #include <stdio.h> -#endif // WIN32 -#endif // SIMULATOR +#endif /* WIN32 */ +#endif /* SIMULATOR */ #endif |