From 973ee7baf596df21da69952d362b73f0d77b6e09 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 14 Sep 2013 14:14:00 +0300 Subject: fix compilation with old SDL versions. --- src/resources/sdlmusic.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/resources/sdlmusic.cpp') diff --git a/src/resources/sdlmusic.cpp b/src/resources/sdlmusic.cpp index 1a6bb7020..fb31c0562 100644 --- a/src/resources/sdlmusic.cpp +++ b/src/resources/sdlmusic.cpp @@ -41,11 +41,10 @@ Resource *SDLMusic::load(SDL_RWops *const rw) { #ifdef USE_SDL2 if (Mix_Music *const music = Mix_LoadMUSType_RW(rw, MUS_OGG, 1)) -#elif defined(WIN32) || defined ANDROID +#else // +++ here probably mem leak + // Mix_LoadMUSType_RW was added without version changed in SDL1.2 :( if (Mix_Music *const music = Mix_LoadMUS_RW(rw)) -#else - if (Mix_Music *const music = Mix_LoadMUSType_RW(rw, MUS_OGG, SDL_TRUE)) #endif { return new SDLMusic(music); -- cgit v1.2.3-70-g09d2