diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-16 23:47:03 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-16 23:47:03 +0000 |
commit | 2c7b127dd77564a8ca8c384d7d1abed441efe110 (patch) | |
tree | 95353f6db63c676890176f26fb9f452e8050d547 /apps/menus | |
parent | c0351ca6338075461565b7ba14b01ba3cabb3f1e (diff) | |
download | rockbox-2c7b127dd77564a8ca8c384d7d1abed441efe110.tar.gz rockbox-2c7b127dd77564a8ca8c384d7d1abed441efe110.zip |
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
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/main_menu.c | 2 | ||||
-rw-r--r-- | apps/menus/settings_menu.c | 4 |
2 files changed, 3 insertions, 3 deletions
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) | |||
199 | output_dyn_value(NULL, 0, free, kbyte_units, true); | 199 | output_dyn_value(NULL, 0, free, kbyte_units, true); |
200 | #endif | 200 | #endif |
201 | 201 | ||
202 | #ifdef CONFIG_RTC | 202 | #if CONFIG_RTC |
203 | { | 203 | { |
204 | struct tm* tm = get_time(); | 204 | struct tm* tm = get_time(); |
205 | talk_id(VOICE_CURRENT_TIME, true); | 205 | 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, | |||
185 | #endif | 185 | #endif |
186 | 186 | ||
187 | /* Time & Date */ | 187 | /* Time & Date */ |
188 | #ifdef CONFIG_RTC | 188 | #if CONFIG_RTC |
189 | static int timedate_set(void) | 189 | static int timedate_set(void) |
190 | { | 190 | { |
191 | struct tm tm; | 191 | struct tm tm; |
@@ -317,7 +317,7 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), | |||
317 | #ifndef HAVE_MMC | 317 | #ifndef HAVE_MMC |
318 | &disk_menu, | 318 | &disk_menu, |
319 | #endif | 319 | #endif |
320 | #ifdef CONFIG_RTC | 320 | #if CONFIG_RTC |
321 | &time_menu, | 321 | &time_menu, |
322 | #endif | 322 | #endif |
323 | &poweroff, | 323 | &poweroff, |