Commit 4ef1d5a2 authored by Thomas Guillem's avatar Thomas Guillem

winvlc: disable buffering on stderr

cf. discussion on the gdb project:

stderr can be buffered on Windows when connected to a pipe.
parent 35c2d3cf
......@@ -129,6 +129,12 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
#ifndef NDEBUG
/* Disable stderr buffering. Indeed, stderr can be buffered on Windows (if
* connected to a pipe). */
setvbuf (stderr, NULL, _IONBF, BUFSIZ);
#if (_WIN32_WINNT < _WIN32_WINNT_WIN7)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment