forked from Mirrors/openclonk
Windows: Write console output to stdout
This is useful for third-party editor UIs. See http://forum.openclonk.org/topic_show.pl?tid=3344directional-lights
parent
4d5bb7304c
commit
f5613c350e
|
@ -166,14 +166,8 @@ bool LogSilent(const char *szMessage, bool fConsole)
|
|||
// Write to console
|
||||
if (fConsole)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
// debug: output to VC console
|
||||
OutputDebugString(TimeMessage.GetWideChar());
|
||||
#endif
|
||||
#if !defined(_WIN32) || defined(USE_CONSOLE)
|
||||
fputs(TimeMessage.getData(),stdout);
|
||||
fflush(stdout);
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue