Skip to content

Commit

Permalink
SDL: Guard audio CD code to be SDL 1.2 only.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schickel committed Jan 25, 2015
1 parent 99f4daf commit b000504
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backends/audiocd/sdl/sdl-audiocd.cpp
Expand Up @@ -24,9 +24,12 @@

#if defined(SDL_BACKEND)

#include "common/textconsole.h"
#include "backends/audiocd/sdl/sdl-audiocd.h"

#if !SDL_VERSION_ATLEAST(1, 3, 0)

#include "common/textconsole.h"

SdlAudioCDManager::SdlAudioCDManager()
:
_cdrom(0),
Expand Down Expand Up @@ -133,4 +136,6 @@ void SdlAudioCDManager::updateCD() {
}
}

#endif // !SDL_VERSION_ATLEAST(1, 3, 0)

#endif
4 changes: 4 additions & 0 deletions backends/audiocd/sdl/sdl-audiocd.h
Expand Up @@ -27,6 +27,8 @@

#include "backends/platform/sdl/sdl-sys.h"

#if !SDL_VERSION_ATLEAST(1, 3, 0)

/**
* The SDL audio cd manager. Implements real audio cd playback.
*/
Expand All @@ -47,4 +49,6 @@ class SdlAudioCDManager : public DefaultAudioCDManager {
uint32 _cdEndTime, _cdStopTime;
};

#endif // !SDL_VERSION_ATLEAST(1, 3, 0)

#endif

0 comments on commit b000504

Please sign in to comment.