mirror of https://github.com/OpenTTD/OpenTTD
(svn r2686) Revert accidently commited change
parent
07a6e612ec
commit
5178ad768d
2
win32.c
2
win32.c
|
@ -1079,7 +1079,7 @@ void CreateConsole(void)
|
||||||
SetConsoleScreenBufferSize(hand, coninfo.dwSize);
|
SetConsoleScreenBufferSize(hand, coninfo.dwSize);
|
||||||
|
|
||||||
// redirect unbuffered STDIN, STDOUT, STDERR to the console
|
// redirect unbuffered STDIN, STDOUT, STDERR to the console
|
||||||
#if !defined(__CYGWIN__) && 0
|
#if !defined(__CYGWIN__)
|
||||||
*stdout = *_fdopen( _open_osfhandle((long)hand, _O_TEXT), "w" );
|
*stdout = *_fdopen( _open_osfhandle((long)hand, _O_TEXT), "w" );
|
||||||
*stdin = *_fdopen(_open_osfhandle((long)GetStdHandle(STD_INPUT_HANDLE), _O_TEXT), "r" );
|
*stdin = *_fdopen(_open_osfhandle((long)GetStdHandle(STD_INPUT_HANDLE), _O_TEXT), "r" );
|
||||||
*stderr = *_fdopen(_open_osfhandle((long)GetStdHandle(STD_ERROR_HANDLE), _O_TEXT), "w" );
|
*stderr = *_fdopen(_open_osfhandle((long)GetStdHandle(STD_ERROR_HANDLE), _O_TEXT), "w" );
|
||||||
|
|
Loading…
Reference in New Issue