diff --git a/src/file_find.cc b/src/file_find.cc index 59c3f13..bc8363a 100644 --- a/src/file_find.cc +++ b/src/file_find.cc @@ -47,7 +47,7 @@ bool fileFindNext(DirectoryFileFindData* findData) // 0x4E63CC bool findFindClose(DirectoryFileFindData* findData) { -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__MINGW32__) FindClose(findData->hFind); #else if (closedir(findData->dir) != 0) { diff --git a/src/mmx.cc b/src/mmx.cc index 205bffb..27f9edc 100644 --- a/src/mmx.cc +++ b/src/mmx.cc @@ -9,6 +9,9 @@ // 0x4E08A0 bool mmxIsSupported() { +#if defined(__MINGW32__) + return false; +#else int v1; // TODO: There are other ways to determine MMX using FLAGS register. @@ -22,6 +25,7 @@ bool mmxIsSupported() } return v1 != 0; +#endif } // 0x4E0DB0