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
 
@@ -169,13 +169,17 @@ char *CrashLog::LogLibraries(char *buffe
 

	
 
#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");
0 comments (0 inline, 0 general)