summaryrefslogtreecommitdiff
path: root/src/utils/dumplibs.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-19 18:34:45 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-19 18:34:45 +0300
commit5faa6985dae4439bdd041aa9772ee0cd6758951a (patch)
treed30e6135ef1e69d7bf7567aa5eb92a0936e9f11b /src/utils/dumplibs.cpp
parent1b62d5cb6e4709981c158add59c12ca34b5f582f (diff)
downloadmanaplus-5faa6985dae4439bdd041aa9772ee0cd6758951a.tar.gz
manaplus-5faa6985dae4439bdd041aa9772ee0cd6758951a.tar.bz2
manaplus-5faa6985dae4439bdd041aa9772ee0cd6758951a.tar.xz
manaplus-5faa6985dae4439bdd041aa9772ee0cd6758951a.zip
Fix compilation with SDL 2.
Diffstat (limited to 'src/utils/dumplibs.cpp')
-rw-r--r--src/utils/dumplibs.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/utils/dumplibs.cpp b/src/utils/dumplibs.cpp
index c3be0fe0b..f60ba7949 100644
--- a/src/utils/dumplibs.cpp
+++ b/src/utils/dumplibs.cpp
@@ -73,7 +73,16 @@ void dumpLibs()
#ifdef LIBXML_TEST_VERSION
LIBXML_TEST_VERSION
#endif // LIBXML_TEST_VERSION
+#ifdef USE_SDL2
+ SDL_version sdlVersion;
+ sdlVersion.major = 0;
+ sdlVersion.minor = 0;
+ sdlVersion.patch = 0;
+ SDL_GetVersion(&sdlVersion);
+ dumpLinkedSdlVersion("SDL", &sdlVersion);
+#else // USE_SDL2
dumpLinkedSdlVersion("SDL", SDL_Linked_Version());
+#endif // USE_SDL2
dumpLinkedSdlVersion("SDL_net", SDLNet_Linked_Version());
dumpLinkedSdlVersion("SDL_image", IMG_Linked_Version());
dumpLinkedSdlVersion("SDL_ttf", TTF_Linked_Version());