Fix building under MinGW

This commit is contained in:
darkf 2015-08-15 23:41:40 -07:00
parent 882040fde7
commit e053d30bf7
3 changed files with 12 additions and 5 deletions

View file

@ -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);