mirror of https://github.com/YosysHQ/icestorm.git
fix for VS2013
tested, after this fix it works on win host
This commit is contained in:
parent
2b8be10986
commit
3f822bc0ca
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue