From 725db142bc4b16c930e46e03394611d7a625bbaa Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Tue, 24 May 2011 20:58:36 +0200 Subject: [PATCH] SAMSUNGTV: Fix build on non-SDL platforms --- backends/graphics/samsungtvsdl/samsungtvsdl-graphics.cpp | 6 ++++-- backends/platform/samsungtv/main.cpp | 6 ++++-- backends/platform/samsungtv/samsungtv.cpp | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/backends/graphics/samsungtvsdl/samsungtvsdl-graphics.cpp b/backends/graphics/samsungtvsdl/samsungtvsdl-graphics.cpp index b929b5fe279..18629d949a2 100644 --- a/backends/graphics/samsungtvsdl/samsungtvsdl-graphics.cpp +++ b/backends/graphics/samsungtvsdl/samsungtvsdl-graphics.cpp @@ -20,12 +20,14 @@ * */ +#include "common/scummsys.h" + +#if defined(SAMSUNGTV) + #include "backends/platform/samsungtv/samsungtv.h" #include "backends/events/samsungtvsdl/samsungtvsdl-events.h" #include "backends/graphics/samsungtvsdl/samsungtvsdl-graphics.h" -#if defined(SAMSUNGTV) - SamsungTVSdlGraphicsManager::SamsungTVSdlGraphicsManager(SdlEventSource *sdlEventSource) : SdlGraphicsManager(sdlEventSource) { } diff --git a/backends/platform/samsungtv/main.cpp b/backends/platform/samsungtv/main.cpp index 4f3291613d4..8274bb00a23 100644 --- a/backends/platform/samsungtv/main.cpp +++ b/backends/platform/samsungtv/main.cpp @@ -22,12 +22,14 @@ #define FORBIDDEN_SYMBOL_EXCEPTION_unistd_h +#include "common/scummsys.h" + +#if defined(SAMSUNGTV) + #include "backends/platform/samsungtv/samsungtv.h" #include "backends/plugins/sdl/sdl-provider.h" #include "base/main.h" -#if defined(SAMSUNGTV) - #include extern "C" int Game_Main(char *path, char *) { diff --git a/backends/platform/samsungtv/samsungtv.cpp b/backends/platform/samsungtv/samsungtv.cpp index 1b978d01212..ca97565185e 100644 --- a/backends/platform/samsungtv/samsungtv.cpp +++ b/backends/platform/samsungtv/samsungtv.cpp @@ -20,12 +20,14 @@ * */ +#include "common/scummsys.h" + +#if defined(SAMSUNGTV) + #include "backends/platform/samsungtv/samsungtv.h" #include "backends/events/samsungtvsdl/samsungtvsdl-events.h" #include "backends/graphics/samsungtvsdl/samsungtvsdl-graphics.h" -#if defined(SAMSUNGTV) - OSystem_SDL_SamsungTV::OSystem_SDL_SamsungTV() : OSystem_POSIX("/mtd_rwarea/.scummvmrc") {