From 954a45bc75a02c567c336420f3cf201ac19a1cb1 Mon Sep 17 00:00:00 2001 From: k3tamina Date: Sun, 29 May 2022 11:44:14 +0200 Subject: [PATCH] More fixes for MinGW --- src/file_find.cc | 2 +- src/mmx.cc | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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