Mercurial > hg > openttd
changeset 14200:a88e1ec998c9 draft
(svn r18751) -Codechange: also log the zlib version in the crash log
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 07 Jan 2010 16:29:58 +0000 |
parents | e4aab18f4d6c |
children | 9b6ceff4a9f3 |
files | src/crashlog.cpp |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/crashlog.cpp +++ b/src/crashlog.cpp @@ -138,6 +138,9 @@ # 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 @@ } #endif /* WITH_SDL */ +#ifdef WITH_ZLIB + buffer += seprintf(buffer, last, " Zlib: %s\n", zlibVersion()); +#endif + buffer += seprintf(buffer, last, "\n"); return buffer; }