From 3b5b8b4a0e38099c59fbe0698a91e1cd2e3317f0 Mon Sep 17 00:00:00 2001 From: tradke Date: Sat, 2 Oct 1999 23:26:40 +0000 Subject: Choose "NUL" instead of "/dev/null" for redirection of stdout under Windoofs. git-svn-id: http://svn.cactuscode.org/flesh/trunk@1007 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/main/CommandLine.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main') diff --git a/src/main/CommandLine.c b/src/main/CommandLine.c index 4f27c5f1..83810361 100644 --- a/src/main/CommandLine.c +++ b/src/main/CommandLine.c @@ -322,7 +322,12 @@ void CCTKi_CommandLineFinished(void) } else { +#ifdef WIN32 + /* hack for Windows which doesn't know about /dev/null */ + sprintf(fname,"NUL"); +#else sprintf(fname,"/dev/null"); +#endif } freopen(fname,"w",stdout); -- cgit v1.2.3