Changeset - r14190:cc5f13db59fa
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-01-07 16:29:58
rubidium@openttd.org
(svn r18751) -Codechange: also log the zlib version in the crash log
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/crashlog.cpp
Show inline comments
 
@@ -138,6 +138,9 @@ char *CrashLog::LogConfiguration(char *b
 
#	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 *buffe
 
	}
 
#endif /* WITH_SDL */
 

	
 
#ifdef WITH_ZLIB
 
	buffer += seprintf(buffer, last, " Zlib:       %s\n", zlibVersion());
 
#endif
 

	
 
	buffer += seprintf(buffer, last, "\n");
 
	return buffer;
 
}
0 comments (0 inline, 0 general)