Mercurial > hg > openttd
changeset 13911:a988b35a9705 draft
(svn r18442) -Fix (r18440): warning about SDL_Linked_Version never being NULL on non-Windows systems
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 09 Dec 2009 09:16:29 +0000 |
parents | 4d1535e20cc6 |
children | 3be57eaa986d |
files | src/crashlog.cpp |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/crashlog.cpp +++ b/src/crashlog.cpp @@ -172,7 +172,11 @@ #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); }