Don't clear streams when they are reopened

This commit is contained in:
Joni Savolainen 2022-01-15 11:04:56 +02:00
parent c2deb233e0
commit 7c1b15ecb8

View file

@ -24,8 +24,4 @@ void reopenWindowsStreams()
freopen_s(&outStream, "CONOUT$", "w+", stdout);
freopen_s(&errStream, "CONOUT$", "w+", stderr);
freopen_s(&inStream, "CONIN$", "r", stdin);
std::cout.clear();
std::clog.clear();
std::cerr.clear();
std::cin.clear();
}