git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8186 c06c8d41-db1a-0410-9941-cceddc491573
XZY5YCRL626MBIAYGZBMFCLAXG7UFVEMTSAUQIUMTJDLCHIT7SBQC
if (attach_console)
{
// Redirect output to the console
attach_console((DWORD)-1);
freopen("CONOUT$", "wb", stdout);
freopen("CONOUT$", "wb", stderr);
}
#endif
}
static void _shutdown_console()
{
#ifdef WIN32TILES
typedef BOOL (WINAPI *fc_func)(void);
fc_func free_console = (fc_func)GetProcAddress(
GetModuleHandle(TEXT("kernel32.dll")), "FreeConsole");
if (free_console)
free_console();
#endif
}