diff options
author | rubidium <rubidium@openttd.org> | 2010-01-07 16:29:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-07 16:29:58 +0000 |
commit | 1fc01513e2cba578138c2d733b40a4de45bc41b9 (patch) | |
tree | 7f046bb10894f2d2b92896aafdb189d2c7298548 | |
parent | 175db8d613f528ea266044be2605ca79f9c30e76 (diff) | |
download | openttd-1fc01513e2cba578138c2d733b40a4de45bc41b9.tar.xz |
(svn r18751) -Codechange: also log the zlib version in the crash log
-rw-r--r-- | src/crashlog.cpp | 7 |
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; } |