Windows build fix :P

This commit is contained in:
Henrik Rydgard 2013-02-04 20:20:50 +01:00
parent 7a36619174
commit 349f1bd56b

View File

@ -31,6 +31,9 @@
#endif
#undef DeleteFile
#if HOST_IS_CASE_SENSITIVE
static bool FixFilenameCase(const std::string &path, std::string &filename)
@ -248,7 +251,7 @@ bool DirectoryFileSystem::RenameFile(const std::string &from, const std::string
bool DirectoryFileSystem::DeleteFile(const std::string &filename) {
std::string fullName = GetLocalPath(filename);
#ifdef _WIN32
bool retValue = (::DeleteFile(fullName.c_str()) == TRUE);
bool retValue = (::DeleteFileA(fullName.c_str()) == TRUE);
#else
bool retValue = (0 == unlink(fullName.c_str()));
#endif