fix VS2917 warnings: C4091, C4477, C4302, C4311
This commit is contained in:
@@ -64,13 +64,13 @@ GUIConsole::GUIConsole (void)
|
||||
::SetConsoleScreenBufferSize(::GetStdHandle(STD_OUTPUT_HANDLE),csbi.dwSize);
|
||||
::SetConsoleTitleA( "FreeCAD Console");
|
||||
|
||||
*stdout = *::_fdopen(::_open_osfhandle(reinterpret_cast<LONG>(::GetStdHandle(STD_OUTPUT_HANDLE)), _O_TEXT), "w");
|
||||
*stdout = *::_fdopen(::_open_osfhandle(reinterpret_cast<intptr_t>(::GetStdHandle(STD_OUTPUT_HANDLE)), _O_TEXT), "w");
|
||||
::setvbuf(stdout, 0, _IONBF, 0);
|
||||
|
||||
*stdin = *::_fdopen(::_open_osfhandle(reinterpret_cast<LONG>(::GetStdHandle(STD_INPUT_HANDLE)), _O_TEXT), "r");
|
||||
*stdin = *::_fdopen(::_open_osfhandle(reinterpret_cast<intptr_t>(::GetStdHandle(STD_INPUT_HANDLE)), _O_TEXT), "r");
|
||||
::setvbuf(stdin, 0, _IONBF, 0);
|
||||
|
||||
*stderr = *::_fdopen(::_open_osfhandle(reinterpret_cast<LONG>(::GetStdHandle(STD_ERROR_HANDLE)), _O_TEXT), "w");
|
||||
*stderr = *::_fdopen(::_open_osfhandle(reinterpret_cast<intptr_t>(::GetStdHandle(STD_ERROR_HANDLE)), _O_TEXT), "w");
|
||||
::setvbuf(stderr, 0, _IONBF, 0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user