1
0
Fork 0
forked from len0rd/rockbox

Replace references to HAVE_RTC with CONFIG_RTC and remove the HAVE_RTC defines from config-*.h

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8147 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2005-12-04 15:23:47 +00:00
parent 0ea71be348
commit 8c800cf59a
27 changed files with 48 additions and 62 deletions

View file

@ -19,7 +19,7 @@
****************************************************************************/
#include "plugin.h"
#if defined(HAVE_LCD_BITMAP) && defined(HAVE_RTC)
#if defined(HAVE_LCD_BITMAP) && defined(CONFIG_RTC)
#include <timefuncs.h>
@ -69,7 +69,7 @@ static int calc_weekday( struct shown *shown )
static void calendar_init(struct today *today, struct shown *shown)
{
int w,h;
#ifdef HAVE_RTC
#ifdef CONFIG_RTC
struct tm *tm;
#else
(void)today;
@ -81,7 +81,7 @@ static void calendar_init(struct today *today, struct shown *shown)
use_system_font = true;
}
rb->lcd_clear_display();
#ifdef HAVE_RTC
#ifdef CONFIG_RTC
tm = rb->get_time();
today->mon = tm->tm_mon +1;
today->year = 2000+tm->tm_year%100;