More fixes for MinGW

This commit is contained in:
k3tamina 2022-05-29 11:44:14 +02:00
parent f55adc4ec5
commit 954a45bc75
2 changed files with 5 additions and 1 deletions

View File

@ -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) {

View File

@ -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