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

winvlc: disable buffering on stderr

cf. discussion on the gdb project:
http://sourceware.org/ml/gdb-patches/2013-08/msg00422.html

stderr can be buffered on Windows when connected to a pipe.
parent 35c2d3cf
......@@ -129,6 +129,12 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
putenv("VLC_DATA_PATH=Z:"TOP_SRCDIR"/share");
#endif
#ifndef NDEBUG
/* Disable stderr buffering. Indeed, stderr can be buffered on Windows (if
* connected to a pipe). */
setvbuf (stderr, NULL, _IONBF, BUFSIZ);
#endif
#if (_WIN32_WINNT < _WIN32_WINNT_WIN7)
SetErrorMode(SEM_FAILCRITICALERRORS);
#endif
......
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