Add #if __WIN32__ check in win-consoleutils.cpp

This commit is contained in:
Joni Savolainen 2022-01-16 18:22:23 +02:00
parent 6d9c144b65
commit 8348f06d17

View file

@ -1,3 +1,5 @@
#if __WIN32__
#include "win-consoleutils.h"
// Attempts to allocate a console and fetch the output handle.
@ -64,3 +66,5 @@ static int openStdHandle(const DWORD &nStdHandle)
return _open_osfhandle((intptr_t)handle, _O_TEXT);
}
#endif // __WIN32__