summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-09 09:16:29 +0000
committerrubidium <rubidium@openttd.org>2009-12-09 09:16:29 +0000
commit29f44c099af3297438d8e53a31122784e1afa1f1 (patch)
treef39c8db8879c434850d75e4c26ddad37e53b57b9 /src
parent97597b510cf7b1fd55a89a19acd145b6827d9b5e (diff)
downloadopenttd-29f44c099af3297438d8e53a31122784e1afa1f1.tar.xz
(svn r18442) -Fix (r18440): warning about SDL_Linked_Version never being NULL on non-Windows systems
Diffstat (limited to 'src')
-rw-r--r--src/crashlog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crashlog.cpp b/src/crashlog.cpp
index 28b45e11b..7b0ced062 100644
--- a/src/crashlog.cpp
+++ b/src/crashlog.cpp
@@ -172,7 +172,11 @@ char *CrashLog::LogLibraries(char *buffer, const char *last) const
#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);
}