Remove unnecessary conditional compile for _MSC_VER

This commit is contained in:
Kelvin Lee 2020-11-30 01:05:25 +11:00
parent a7353aa7f1
commit 4c19069d8b

View File

@ -2747,13 +2747,8 @@ void FrameRegisterClass () {
// TODO: FIXME: Util_TestFileExists()
static bool FileExists(std::string strFilename)
{
#ifdef _MSC_VER
struct _stat64 stFileInfo;
int intStat = _stat64(strFilename.c_str(), &stFileInfo);
#else
struct stat stFileInfo;
int intStat = stat(strFilename.c_str(), &stFileInfo);
#endif
return (intStat == 0);
}