Merge pull request #997 from Kirozen/patch-1

Add support for MinGW in base/fstream_path.h
This commit is contained in:
David Capello 2016-03-04 11:36:00 -03:00
commit 36eb38a5e7

View File

@ -11,7 +11,11 @@
#include "base/string.h"
#ifdef _WIN32
#define FSTREAM_PATH(path) (base::from_utf8(path).c_str())
#ifdef __MINGW32__
#define FSTREAM_PATH(path) (std::string(path).c_str())
#else
#define FSTREAM_PATH(path) (base::from_utf8(path).c_str())
#endif
#else
#define FSTREAM_PATH(path) (std::string(path).c_str())
#endif