Fix build in Visual Studio (2013) #111
|
@ -348,7 +348,11 @@ void Config::readGameINI()
|
||||||
size_t inLen = game.title.size();
|
size_t inLen = game.title.size();
|
||||||
size_t outLen = inLen * 4;
|
size_t outLen = inLen * 4;
|
||||||
std::string buf(outLen, '\0');
|
std::string buf(outLen, '\0');
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
const char *inPtr = game.title.c_str();
|
||||||
|
#else
|
||||||
char *inPtr = const_cast<char*>(game.title.c_str());
|
char *inPtr = const_cast<char*>(game.title.c_str());
|
||||||
|
#endif
|
||||||
char *outPtr = const_cast<char*>(buf.c_str());
|
char *outPtr = const_cast<char*>(buf.c_str());
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
|
Loading…
Reference in New Issue