mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-08 16:05:34 +02:00
Add #if __WIN32__ check in win-consoleutils.cpp
This commit is contained in:
parent
6d9c144b65
commit
8348f06d17
1 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
#if __WIN32__
|
||||||
|
|
||||||
#include "win-consoleutils.h"
|
#include "win-consoleutils.h"
|
||||||
|
|
||||||
// Attempts to allocate a console and fetch the output handle.
|
// 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);
|
return _open_osfhandle((intptr_t)handle, _O_TEXT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // __WIN32__
|
||||||
|
|
Loading…
Add table
Reference in a new issue