summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-04-18 12:56:10 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-04-18 12:56:10 +0000
commita4371022b3e44adfe490515c50eac140c512445d (patch)
tree8b3b43e0574bc4c7ab9f896cacb3a929eece1563
parent86c85270cb299ee1bf60c3f75172afb25b93615a (diff)
Now uses the NULL_DEVICE to redirect to if that is defined.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1574 17b73243-c579-4c4c-a9d2-2d5706c11dac
-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 8ff8442c..529558bd 100644
--- a/src/main/CommandLine.c
+++ b/src/main/CommandLine.c
@@ -379,12 +379,17 @@ void CCTKi_CommandLineFinished(void)
}
else
{
+ /* FIXME: remove this #ifdef in beta 8 */
+#ifdef NULL_DEVICE
+ sprintf(fname,NULL_DEVICE);
+#else
#ifdef WIN32
/* hack for Windows which doesn't know about /dev/null */
sprintf(fname,"NUL");
#else
sprintf(fname,"/dev/null");
#endif
+#endif /* NULL_DEVICE */
}
freopen(fname,"w",stdout);