summaryrefslogtreecommitdiff
path: root/src/common/file_util.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-08-19 20:40:31 -0400
committerbunnei <bunneidev@gmail.com>2015-08-19 20:40:31 -0400
commit21ba05e5f1a571dd26fd5bf06afcb993b1ca301f (patch)
tree79f9971851cfe9d416f07367e5f592972a086e4b /src/common/file_util.h
parenta575399fbcf6f2c29e9dd9835c5014226b453348 (diff)
parente053d30bf75f311778ad745f7859a9733d6ce2e3 (diff)
Merge pull request #1035 from darkf/mingw-fix
Fix building under MinGW
Diffstat (limited to 'src/common/file_util.h')
-rw-r--r--src/common/file_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/file_util.h b/src/common/file_util.h
index d0dccdf69..e71a9b2fa 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -244,7 +244,7 @@ private:
template <typename T>
void OpenFStream(T& fstream, const std::string& filename, std::ios_base::openmode openmode)
{
-#ifdef _WIN32
+#ifdef _MSC_VER
fstream.open(Common::UTF8ToTStr(filename).c_str(), openmode);
#else
fstream.open(filename.c_str(), openmode);