summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index b29e92f2e..33595d885 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -174,7 +174,13 @@ static void showhelp(void)
p = GetDriverList(p, lastof(buf));
+ /* ShowInfo put output to stderr, but version information should go
+ * to stdout; this is the only exception */
+#if !defined(WIN32) && !defined(WIN64)
+ printf("%s\n", buf);
+#else
ShowInfo(buf);
+#endif
}