mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
c0351ca633
commit
2c7b127dd7
21 changed files with 42 additions and 38 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue