Fix a Symbian compile issue.

This commit is contained in:
Unknown W. Brackets 2014-12-28 20:54:29 -08:00
parent 86859dd8e9
commit 1ec19310cd

View File

@ -354,7 +354,7 @@ bool Rename(const std::string &srcFilename, const std::string &destFilename)
{
INFO_LOG(COMMON, "Rename: %s --> %s",
srcFilename.c_str(), destFilename.c_str());
#ifdef UNICODE
#if defined(_WIN32) && defined(UNICODE)
std::wstring srcw = ConvertUTF8ToWString(srcFilename);
std::wstring destw = ConvertUTF8ToWString(destFilename);
if (_wrename(srcw.c_str(), destw.c_str()) == 0)