mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Fixed MSVC.
This commit is contained in:
@@ -455,7 +455,23 @@ namespace bx
|
||||
return false;
|
||||
}
|
||||
|
||||
#if BX_CRT_MSVC
|
||||
int32_t result;
|
||||
FileInfo fi;
|
||||
if (stat(_filePath, fi) )
|
||||
{
|
||||
if (FileInfo::Directory == fi.m_type)
|
||||
{
|
||||
result = ::_rmdir(_filePath.get() );
|
||||
}
|
||||
else
|
||||
{
|
||||
result = ::remove(_filePath.get() );
|
||||
}
|
||||
}
|
||||
#else
|
||||
int32_t result = ::remove(_filePath.get() );
|
||||
#endif // BX_CRT_MSVC
|
||||
|
||||
if (0 != result)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user