We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 804f7c9 commit 701fb8eCopy full SHA for 701fb8e
util-win32.cpp
@@ -170,6 +170,7 @@ static void init_std_streams_platform ()
170
{
171
_setmode(_fileno(stdin), _O_BINARY);
172
_setmode(_fileno(stdout), _O_BINARY);
173
+ std::cout.setf(std::ios::unitbuf);
174
}
175
176
void create_protected_file (const char* path) // TODO
util.cpp
@@ -150,7 +150,7 @@ void init_std_streams ()
150
init_std_streams_platform();
151
152
153
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
154
#include "util-win32.cpp"
155
#else
156
#include "util-unix.cpp"
0 commit comments