summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}