1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fix build

This commit is contained in:
Ivan Savenko
2025-03-02 11:26:55 +00:00
parent 64ac14fa06
commit dda48b3693

View File

@ -243,7 +243,7 @@ int CConsoleHandler::run()
while ( std::cin.good() ) while ( std::cin.good() )
{ {
#ifndef VCMI_WINDOWS #ifndef _MSC_VER
//check if we have some unreaded symbols //check if we have some unreaded symbols
if (std::cin.rdbuf()->in_avail()) if (std::cin.rdbuf()->in_avail())
{ {
@ -306,7 +306,7 @@ void CConsoleHandler::end()
{ {
if (thread.joinable()) if (thread.joinable())
{ {
#ifndef VCMI_WINDOWS #ifndef _MSC_VER
shutdownPending = true; shutdownPending = true;
#else #else
TerminateThread(thread.native_handle(),0); TerminateThread(thread.native_handle(),0);