From 1ec19310cdaa26c4c56b48ab5dd37ceab2805fcb Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 28 Dec 2014 20:54:29 -0800 Subject: [PATCH] Fix a Symbian compile issue. --- Common/FileUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/FileUtil.cpp b/Common/FileUtil.cpp index a52941651..479da535a 100644 --- a/Common/FileUtil.cpp +++ b/Common/FileUtil.cpp @@ -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)