summaryrefslogtreecommitdiff
path: root/src/main/CommandLine.c
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-10-02 23:26:40 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-10-02 23:26:40 +0000
commit3b5b8b4a0e38099c59fbe0698a91e1cd2e3317f0 (patch)
treeba2d8138b7bbf2d1e2404e6720ffcdd53ba837f1 /src/main/CommandLine.c
parentd4b236c867cd7be53821eab4952c35b04692c44e (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/main/CommandLine.c')
-rw-r--r--src/main/CommandLine.c5
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);