Windows 2000 support, part 1
This commit is contained in:
parent
f5a6a9ed6c
commit
1ec49d3557
7 changed files with 30 additions and 11 deletions
|
|
@ -545,12 +545,14 @@ int main(int argc, char** argv) {
|
|||
// Windows console thing - thanks dj.tuBIG/MaliceX
|
||||
#ifdef _WIN32
|
||||
#ifndef TA_SUBSYSTEM_CONSOLE
|
||||
#ifndef SUPPORT_XP
|
||||
if (AttachConsole(ATTACH_PARENT_PROCESS)) {
|
||||
freopen("CONOUT$", "w", stdout);
|
||||
freopen("CONOUT$", "w", stderr);
|
||||
freopen("CONIN$", "r", stdin);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
srand(time(NULL));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue