From e95326ff38b79da7c5ef7204f5df78cc9ce9f7e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 18 Feb 2017 23:30:33 +0300 Subject: Fix compilation warning with SDL2. --- src/resources/sdlmusic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/resources/sdlmusic.cpp b/src/resources/sdlmusic.cpp index 964cab507..ab0133588 100644 --- a/src/resources/sdlmusic.cpp +++ b/src/resources/sdlmusic.cpp @@ -24,12 +24,14 @@ #include "debug.h" +#ifndef USE_SDL2 #define SDL_MIXER_COMPILEDVERSION \ SDL_VERSIONNUM(SDL_MIXER_MAJOR_VERSION, \ SDL_MIXER_MINOR_VERSION, SDL_MIXER_PATCHLEVEL) #define SDL_MIXER_VERSION_ATLEAST(X, Y, Z) \ (SDL_MIXER_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z)) +#endif // USE_SDL2 SDLMusic::SDLMusic(Mix_Music *const music, SDL_RWops *const rw, -- cgit v1.2.3-60-g2f50