fix for VS2013

tested, after this fix it works on win host
This commit is contained in:
Antti Lukats 2015-08-21 20:48:55 +02:00
parent 2b8be10986
commit 3f822bc0ca
1 changed files with 6 additions and 0 deletions

View File

@ -1157,7 +1157,13 @@ int main(int argc, char **argv)
}
if (parameters.size() >= 2 && parameters[1] != "-") {
#ifdef _WIN32
ofs.open(parameters[1], std::ios::binary);
#else
ofs.open(parameters[1]);
#endif
if (!ofs.is_open())
error("Failed to open output file.\n");
osp = &ofs;