diff options
-rw-r--r-- | firmware/common/dir.h | 4 | ||||
-rw-r--r-- | firmware/common/file.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/common/dir.h b/firmware/common/dir.h index 3cf36eb34f..ae21adbd97 100644 --- a/firmware/common/dir.h +++ b/firmware/common/dir.h | |||
@@ -53,14 +53,14 @@ typedef struct { | |||
53 | 53 | ||
54 | #else // SIMULATOR | 54 | #else // SIMULATOR |
55 | 55 | ||
56 | #ifdef WIN32 | 56 | #if defined(WIN32) && !defined(__MINGW32__) |
57 | #include <io.h> | 57 | #include <io.h> |
58 | #endif // WIN32 | ||
58 | typedef struct DIRtag | 59 | typedef struct DIRtag |
59 | { | 60 | { |
60 | struct dirent fd; | 61 | struct dirent fd; |
61 | int handle; | 62 | int handle; |
62 | } DIR; | 63 | } DIR; |
63 | #endif // WIN32 | ||
64 | #endif // SIMULATOR | 64 | #endif // SIMULATOR |
65 | 65 | ||
66 | #ifndef DIRFUNCTIONS_DEFINED | 66 | #ifndef DIRFUNCTIONS_DEFINED |
diff --git a/firmware/common/file.h b/firmware/common/file.h index b5249ec042..59aaa70fcc 100644 --- a/firmware/common/file.h +++ b/firmware/common/file.h | |||
@@ -45,7 +45,7 @@ extern int rename(char* oldname, char* newname); | |||
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | #else | 47 | #else |
48 | #ifdef WIN32 | 48 | #if defined(WIN32) && !defined(__MINGW32__) |
49 | #include <io.h> | 49 | #include <io.h> |
50 | #include <stdio.h> | 50 | #include <stdio.h> |
51 | #endif // WIN32 | 51 | #endif // WIN32 |