Changeset - r13901:33eead9076ef
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-12-09 09:16:29
rubidium@openttd.org
(svn r18442) -Fix (r18440): warning about SDL_Linked_Version never being NULL on non-Windows systems
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/crashlog.cpp
Show inline comments
 
@@ -163,25 +163,29 @@ char *CrashLog::LogLibraries(char *buffe
 
	char buf[4 * 3 + 3 + 1];
 
	UVersionInfo ver;
 
	u_getVersion(ver);
 
	u_versionToString(ver, buf);
 
	buffer += seprintf(buffer, last, " ICU:        %s\n", buf);
 
#endif /* WITH_ICU */
 

	
 
#ifdef WITH_PNG
 
	buffer += seprintf(buffer, last, " PNG:        %s\n", png_get_libpng_ver(NULL));
 
#endif /* WITH_PNG */
 

	
 
#ifdef WITH_SDL
 
#ifdef DYNAMICALLY_LOADED_SDL
 
	if (SDL_CALL SDL_Linked_Version != NULL) {
 
#else
 
	{
 
#endif
 
		const SDL_version *v = SDL_CALL SDL_Linked_Version();
 
		buffer += seprintf(buffer, last, " SDL:        %d.%d.%d\n", v->major, v->minor, v->patch);
 
	}
 
#endif /* WITH_SDL */
 

	
 
	buffer += seprintf(buffer, last, "\n");
 
	return buffer;
 
}
 

	
 
/* static */ void CrashLog::GamelogFillCrashLog(const char *s)
 
{
 
	CrashLog::gamelog_buffer += seprintf(CrashLog::gamelog_buffer, CrashLog::gamelog_last, "%s\n", s);
0 comments (0 inline, 0 general)