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 /firmware/export | |
parent | c0351ca6338075461565b7ba14b01ba3cabb3f1e (diff) |
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 'firmware/export')
-rw-r--r-- | firmware/export/config.h | 4 | ||||
-rw-r--r-- | firmware/export/rtc.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h index ae1ce5b283..c935ac466f 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -242,6 +242,10 @@ #define CONFIG_CHARGING 0 #endif +#ifndef CONFIG_RTC +#define CONFIG_RTC 0 +#endif + /* Enable the directory cache and tagcache in RAM if we have * plenty of RAM. Both features can be enabled independently. */ #if ((defined(MEMORYSIZE) && (MEMORYSIZE > 8)) || MEM > 8) && \ diff --git a/firmware/export/rtc.h b/firmware/export/rtc.h index eea83d85bb..3d7a6d6ead 100644 --- a/firmware/export/rtc.h +++ b/firmware/export/rtc.h @@ -23,7 +23,7 @@ #include "system.h" #include "config.h" -#ifdef CONFIG_RTC +#if CONFIG_RTC extern const int dayname[]; |