Fixed MinGW test.

This commit is contained in:
Бранимир Караџић
2024-10-27 09:22:17 -07:00
parent 57be909148
commit f6673d5bf4
3 changed files with 7 additions and 8 deletions

View File

@@ -865,14 +865,18 @@ namespace bx
return false;
}
#if BX_CRT_MSVC
#if BX_CRT_MSVC || BX_CRT_MINGW
int32_t result = -1;
FileInfo fi;
if (stat(fi, _filePath) )
{
if (FileType::Dir == fi.type)
{
# if BX_CRT_MINGW
result = ::rmdir(_filePath.getCPtr() );
# else
result = ::_rmdir(_filePath.getCPtr() );
# endif // BX_CRT_MINGW
}
else
{