diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-19 18:34:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-19 18:34:45 +0300 |
commit | 5faa6985dae4439bdd041aa9772ee0cd6758951a (patch) | |
tree | d30e6135ef1e69d7bf7567aa5eb92a0936e9f11b /src | |
parent | 1b62d5cb6e4709981c158add59c12ca34b5f582f (diff) | |
download | plus-5faa6985dae4439bdd041aa9772ee0cd6758951a.tar.gz plus-5faa6985dae4439bdd041aa9772ee0cd6758951a.tar.bz2 plus-5faa6985dae4439bdd041aa9772ee0cd6758951a.tar.xz plus-5faa6985dae4439bdd041aa9772ee0cd6758951a.zip |
Fix compilation with SDL 2.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/dumplibs.cpp | 9 |
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()); |