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/menus/main_menu.c | 2 +- apps/menus/settings_menu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/menus') diff --git a/apps/menus/main_menu.c b/apps/menus/main_menu.c index 2e034162e5..bd7b35dea2 100644 --- a/apps/menus/main_menu.c +++ b/apps/menus/main_menu.c @@ -199,7 +199,7 @@ static bool show_info(void) output_dyn_value(NULL, 0, free, kbyte_units, true); #endif -#ifdef CONFIG_RTC +#if CONFIG_RTC { struct tm* tm = get_time(); talk_id(VOICE_CURRENT_TIME, true); diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 27d44fd1cf..d150aac148 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c @@ -185,7 +185,7 @@ MAKE_MENU(disk_menu, ID2P(LANG_DISK_MENU), 0, Icon_NOICON, #endif /* Time & Date */ -#ifdef CONFIG_RTC +#if CONFIG_RTC static int timedate_set(void) { struct tm tm; @@ -317,7 +317,7 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), #ifndef HAVE_MMC &disk_menu, #endif -#ifdef CONFIG_RTC +#if CONFIG_RTC &time_menu, #endif &poweroff, -- cgit v1.2.3