From 7840aa196670000be3ff1baa03f99de0e34c61ad Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Wed, 9 Jun 2010 05:29:14 +0000 Subject: Added directives for avoiding compilation of sdl managers on platforms that don't use them (Other platforms may also need to be added later) svn-id: r49531 --- backends/graphics/sdl/sdl-graphics.cpp | 4 ++++ backends/mutex/sdl/sdl-mutex.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp index 8fc2ef6f08..7ae59aed49 100644 --- a/backends/graphics/sdl/sdl-graphics.cpp +++ b/backends/graphics/sdl/sdl-graphics.cpp @@ -23,6 +23,8 @@ * */ +#if defined(WIN32) || defined(UNIX) || defined(MACOSX) + #include "backends/graphics/sdl/sdl-graphics.h" #include "common/config-manager.h" #include "common/mutex.h" @@ -2069,3 +2071,5 @@ bool SdlGraphicsManager::isScalerHotkey(const Common::Event &event) { } return false; } + +#endif diff --git a/backends/mutex/sdl/sdl-mutex.cpp b/backends/mutex/sdl/sdl-mutex.cpp index e30d194ca1..53529c155a 100644 --- a/backends/mutex/sdl/sdl-mutex.cpp +++ b/backends/mutex/sdl/sdl-mutex.cpp @@ -23,6 +23,8 @@ * */ +#if defined(WIN32) || defined(UNIX) || defined(MACOSX) + #include "backends/mutex/sdl/sdl-mutex.h" #if defined(__SYMBIAN32__) @@ -46,3 +48,5 @@ void SdlMutexManager::unlockMutex(OSystem::MutexRef mutex) { void SdlMutexManager::deleteMutex(OSystem::MutexRef mutex) { SDL_DestroyMutex((SDL_mutex *) mutex); } + +#endif -- cgit v1.2.3