From 9233646287f1614b8bdf5b71f05b80020afb16b8 Mon Sep 17 00:00:00 2001 From: kugel Date: Wed, 1 Sep 2010 22:09:43 +0000 Subject: [PATCH] Android: Don't compile sim_tasks.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27973 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 7 +++---- uisimulator/common/SOURCES | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/main.c b/apps/main.c index 0c2f0751b3..5f2c9e5a58 100644 --- a/apps/main.c +++ b/apps/main.c @@ -121,11 +121,8 @@ #define MAIN_NORETURN_ATTR #endif -#if (CONFIG_PLATFORM & PLATFORM_HOSTED) -#include "sim_tasks.h" -#endif - #if (CONFIG_PLATFORM & PLATFORM_SDL) +#include "sim_tasks.h" #include "system-sdl.h" #define HAVE_ARGV_MAIN /* Don't use SDL_main on windows -> no more stdio redirection */ @@ -350,7 +347,9 @@ static void init(void) show_logo(); button_init(); backlight_init(); +#if (CONFIG_PLATFORM & PLATFORM_SDL) sim_tasks_init(); +#endif lang_init(core_language_builtin, language_strings, LANG_LAST_INDEX_IN_ARRAY); #ifdef DEBUG diff --git a/uisimulator/common/SOURCES b/uisimulator/common/SOURCES index 39f008b9dd..db5b22fa42 100644 --- a/uisimulator/common/SOURCES +++ b/uisimulator/common/SOURCES @@ -9,10 +9,10 @@ fmradio.c backlight-sim.c #endif -#if !(CONFIG_PLATFORM & PLATFORM_ANDROID) +#if (CONFIG_PLATFORM & PLATFORM_SDL) io.c +sim_tasks.c #endif /* this is still needed for application since it has some stubs */ powermgmt-sim.c -sim_tasks.c stubs.c -- 2.11.4.GIT