Update fstream_path.h

Fix build on Windows with MinGW
This commit is contained in:
Etienne Faisant 2016-03-04 15:03:46 +01:00
parent 1ee3efd91d
commit c7968d4f2d

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