summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/common/dir.h4
-rw-r--r--firmware/common/file.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/common/dir.h b/firmware/common/dir.h
index 3cf36eb..ae21adb 100644
--- a/firmware/common/dir.h
+++ b/firmware/common/dir.h
@@ -53,14 +53,14 @@ typedef struct {
#else // SIMULATOR
-#ifdef WIN32
+#if defined(WIN32) && !defined(__MINGW32__)
#include <io.h>
+#endif // WIN32
typedef struct DIRtag
{
struct dirent fd;
int handle;
} DIR;
-#endif // WIN32
#endif // SIMULATOR
#ifndef DIRFUNCTIONS_DEFINED
diff --git a/firmware/common/file.h b/firmware/common/file.h
index b5249ec..59aaa70 100644
--- a/firmware/common/file.h
+++ b/firmware/common/file.h
@@ -45,7 +45,7 @@ extern int rename(char* oldname, char* newname);
#endif
#else
-#ifdef WIN32
+#if defined(WIN32) && !defined(__MINGW32__)
#include <io.h>
#include <stdio.h>
#endif // WIN32