diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-10-02 23:26:40 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-10-02 23:26:40 +0000 |
commit | 3b5b8b4a0e38099c59fbe0698a91e1cd2e3317f0 (patch) | |
tree | ba2d8138b7bbf2d1e2404e6720ffcdd53ba837f1 /src | |
parent | d4b236c867cd7be53821eab4952c35b04692c44e (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/main/CommandLine.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |