1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

linux build quick fix

This commit is contained in:
M0N7Y5 2024-08-27 05:48:22 +02:00
parent 5a31cc35ba
commit 81a2f95279
7 changed files with 3841 additions and 3828 deletions

View file

@ -299,6 +299,7 @@ void bf::System::Console::PutChar(char c)
void bf::System::Console::ReopenHandles()
{
#ifdef _MSC_VER
FILE* fDummy;
freopen_s(&fDummy, "CONOUT$", "w", stdout);
freopen_s(&fDummy, "CONOUT$", "w", stderr);
@ -310,6 +311,7 @@ void bf::System::Console::ReopenHandles()
SetStdHandle(STD_OUTPUT_HANDLE, hConOut);
SetStdHandle(STD_ERROR_HANDLE, hConOut);
SetStdHandle(STD_INPUT_HANDLE, hConIn);
#endif
}
void bf::System::Runtime::Init(int version, int flags, BfRtCallbacks* callbacks)