# HG changeset patch # User rubidium # Date 1262881798 0 # Node ID a88e1ec998c944fb670e575f650ae7c79c3ea971 # Parent e4aab18f4d6c8223cfc99549b5f6daafcb993ed0 (svn r18751) -Codechange: also log the zlib version in the crash log diff --git a/src/crashlog.cpp b/src/crashlog.cpp --- a/src/crashlog.cpp +++ b/src/crashlog.cpp @@ -138,6 +138,9 @@ # 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 @@ } #endif /* WITH_SDL */ +#ifdef WITH_ZLIB + buffer += seprintf(buffer, last, " Zlib: %s\n", zlibVersion()); +#endif + buffer += seprintf(buffer, last, "\n"); return buffer; }