From 35e8b1429a2cdcf6580f6d25890fed9865165d0b Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 21 Jun 2010 16:53:00 +0000 Subject: Rockbox as an application: Replace many occurences of #ifdef SIMULATOR with #if (CONFIG_PLATFORM & PLATFORM_HOSTED) (or equivalently). The simulator defines PLATFORM_HOSTED, as RaaA will do (RaaA will not define SIMULATOR). The new define is to (de-)select code to compile on hosted platforms generally. Should be no functional change to targets or the simulator. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27019 a1c6a512-1295-4272-9138-f99709370657 --- apps/scrobbler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/scrobbler.c') diff --git a/apps/scrobbler.c b/apps/scrobbler.c index 401f5b93b6..8d9f694ec2 100644 --- a/apps/scrobbler.c +++ b/apps/scrobbler.c @@ -24,6 +24,7 @@ http://www.audioscrobbler.net/wiki/Portable_Player_Logging */ #include +#include #include "file.h" #include "logf.h" #include "metadata.h" @@ -70,7 +71,7 @@ static unsigned long timestamp; #endif /* Crude work-around for Archos Sims - return a set amount */ -#if (CONFIG_CODEC != SWCODEC) && defined(SIMULATOR) +#if (CONFIG_CODEC != SWCODEC) && (CONFIG_PLATFORM & PLATFORM_HOSTED) unsigned long audio_prev_elapsed(void) { return 120000; -- cgit v1.2.3