summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-07 16:29:58 +0000
committerrubidium <rubidium@openttd.org>2010-01-07 16:29:58 +0000
commit1fc01513e2cba578138c2d733b40a4de45bc41b9 (patch)
tree7f046bb10894f2d2b92896aafdb189d2c7298548 /src
parent175db8d613f528ea266044be2605ca79f9c30e76 (diff)
downloadopenttd-1fc01513e2cba578138c2d733b40a4de45bc41b9.tar.xz
(svn r18751) -Codechange: also log the zlib version in the crash log
Diffstat (limited to 'src')
-rw-r--r--src/crashlog.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/crashlog.cpp b/src/crashlog.cpp
index 056e8f00b..d9c384acd 100644
--- a/src/crashlog.cpp
+++ b/src/crashlog.cpp
@@ -138,6 +138,9 @@ char *CrashLog::LogConfiguration(char *buffer, const char *last) const
# include "sdl.h"
# include <SDL.h>
#endif /* WITH_SDL */
+#ifdef WITH_ZLIB
+# include <zlib.h>
+#endif
char *CrashLog::LogLibraries(char *buffer, const char *last) const
{
@@ -185,6 +188,10 @@ char *CrashLog::LogLibraries(char *buffer, const char *last) const
}
#endif /* WITH_SDL */
+#ifdef WITH_ZLIB
+ buffer += seprintf(buffer, last, " Zlib: %s\n", zlibVersion());
+#endif
+
buffer += seprintf(buffer, last, "\n");
return buffer;
}