From 1fc01513e2cba578138c2d733b40a4de45bc41b9 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 7 Jan 2010 16:29:58 +0000 Subject: (svn r18751) -Codechange: also log the zlib version in the crash log --- src/crashlog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 #endif /* WITH_SDL */ +#ifdef WITH_ZLIB +# include +#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; } -- cgit v1.2.3-70-g09d2