From 2c7b127dd77564a8ca8c384d7d1abed441efe110 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 16 Mar 2007 23:47:03 +0000 Subject: Set CONFIG_RTC to 0 for non-RTC targets, and check with #if to profit from -Wundef. No code change. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12811 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/bounce.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/plugins/bounce.c') diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c index 46d9d88..c5c9dad 100644 --- a/apps/plugins/bounce.c +++ b/apps/plugins/bounce.c @@ -271,7 +271,7 @@ struct counter values[]={ {"ydist", -6}, }; -#ifdef CONFIG_RTC +#if CONFIG_RTC #define CLOCK_STEP (0xffffffff/60) #define CLOCK_FRAC (0xffffffff%60) @@ -382,7 +382,7 @@ static int scrollit(void) return -1; } rb->lcd_clear_display(); -#ifdef CONFIG_RTC +#if CONFIG_RTC addclock(); #endif @@ -451,7 +451,7 @@ static int loopit(void) x+= speed[xsanke&15] + values[NUM_XADD].num; rb->lcd_clear_display(); -#ifdef CONFIG_RTC +#if CONFIG_RTC addclock(); #endif if(timeout) { @@ -516,7 +516,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) rb->sleep(HZ); rb->lcd_set_drawmode(DRMODE_FG); init_tables(); -#ifdef CONFIG_RTC +#if CONFIG_RTC init_clock(); #endif -- cgit v1.1