From 58d256c15e2622b5344628d1d0ac53a28e44d0ab Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Thu, 12 Aug 2010 06:30:26 +0000 Subject: [PATCH] SDL: Make use of SDL_BACKEND instead of platform specific defines. svn-id: r52029 --- backends/audiocd/sdl/sdl-audiocd.cpp | 2 +- backends/events/sdl/sdl-events.cpp | 2 +- backends/graphics/openglsdl/openglsdl-graphics.cpp | 2 +- backends/graphics/sdl/sdl-graphics.cpp | 2 +- backends/mixer/sdl/sdl-mixer.cpp | 2 +- backends/mutex/sdl/sdl-mutex.cpp | 2 +- backends/timer/sdl/sdl-timer.cpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backends/audiocd/sdl/sdl-audiocd.cpp b/backends/audiocd/sdl/sdl-audiocd.cpp index 4035f4ed412..b906a3786f3 100644 --- a/backends/audiocd/sdl/sdl-audiocd.cpp +++ b/backends/audiocd/sdl/sdl-audiocd.cpp @@ -23,7 +23,7 @@ * */ -#if defined(WIN32) || defined(UNIX) || defined(MACOSX) || defined(__SYMBIAN32__) +#if defined(SDL_BACKEND) #include "backends/audiocd/sdl/sdl-audiocd.h" diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp index 95d709a9a7b..20b7b7e9578 100644 --- a/backends/events/sdl/sdl-events.cpp +++ b/backends/events/sdl/sdl-events.cpp @@ -23,7 +23,7 @@ * */ -#if defined(WIN32) || defined(UNIX) || defined(MACOSX) || defined(__SYMBIAN32__) +#if defined(SDL_BACKEND) #include "backends/events/sdl/sdl-events.h" #include "backends/platform/sdl/sdl.h" diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index 2cfdffa5acf..a74c3b45854 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -23,7 +23,7 @@ * */ -#if defined(USE_OPENGL) +#if defined(SDL_BACKEND) && defined(USE_OPENGL) #include "backends/graphics/openglsdl/openglsdl-graphics.h" #include "backends/platform/sdl/sdl.h" diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp index 1681d2ce7dc..2952ad810b8 100644 --- a/backends/graphics/sdl/sdl-graphics.cpp +++ b/backends/graphics/sdl/sdl-graphics.cpp @@ -23,7 +23,7 @@ * */ -#if defined(WIN32) || defined(UNIX) || defined(MACOSX) || defined (__SYMBIAN32__) +#if defined(SDL_BACKEND) #include "backends/graphics/sdl/sdl-graphics.h" #include "backends/events/sdl/sdl-events.h" diff --git a/backends/mixer/sdl/sdl-mixer.cpp b/backends/mixer/sdl/sdl-mixer.cpp index 0d33e1b8217..3c826bfed81 100644 --- a/backends/mixer/sdl/sdl-mixer.cpp +++ b/backends/mixer/sdl/sdl-mixer.cpp @@ -23,7 +23,7 @@ * */ -#if defined(WIN32) || defined(UNIX) || defined(MACOSX) || defined (__SYMBIAN32__) +#if defined(SDL_BACKEND) #include "backends/mixer/sdl/sdl-mixer.h" #include "common/system.h" diff --git a/backends/mutex/sdl/sdl-mutex.cpp b/backends/mutex/sdl/sdl-mutex.cpp index b9f48c832f8..737126057c5 100644 --- a/backends/mutex/sdl/sdl-mutex.cpp +++ b/backends/mutex/sdl/sdl-mutex.cpp @@ -23,7 +23,7 @@ * */ -#if defined(WIN32) || defined(UNIX) || defined(MACOSX) || defined(__SYMBIAN32__) +#if defined(SDL_BACKEND) #include "backends/mutex/sdl/sdl-mutex.h" diff --git a/backends/timer/sdl/sdl-timer.cpp b/backends/timer/sdl/sdl-timer.cpp index 11bf825bb08..4957b4bc1c8 100644 --- a/backends/timer/sdl/sdl-timer.cpp +++ b/backends/timer/sdl/sdl-timer.cpp @@ -24,7 +24,7 @@ * */ -#if defined(WIN32) || defined(UNIX) || defined(MACOSX) || defined (__SYMBIAN32__) +#if defined(SDL_BACKEND) #include "backends/timer/sdl/sdl-timer.h"