Fix build in Visual Studio (2013) #111

Open
chosenofbear wants to merge 5 commits from chosenofbear/master into master
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 99dfe731e1 - Show all commits

View File

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