diff options
author | Alexander Levin <al.le@rockbox.org> | 2009-06-29 14:58:02 +0000 |
---|---|---|
committer | Alexander Levin <al.le@rockbox.org> | 2009-06-29 14:58:02 +0000 |
commit | eaa9df37e061de4bfbdd75c45034ad86afc97c65 (patch) | |
tree | 1d716323a84ee57f10c531c02db4718b4d1e6dd3 /firmware/common/timefuncs.c | |
parent | fb79ae46037fd9d00c76e1e1137e8a282c37d3be (diff) |
Fix yellow introduced in r21561
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21563 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/timefuncs.c')
-rw-r--r-- | firmware/common/timefuncs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/common/timefuncs.c b/firmware/common/timefuncs.c index cc54840376..6fdc0b7240 100644 --- a/firmware/common/timefuncs.c +++ b/firmware/common/timefuncs.c @@ -27,10 +27,11 @@ #include "timefuncs.h" #include "debug.h" -#if !(defined SIMULATOR && CONFIG_RTC) - +#if !defined SIMULATOR || !CONFIG_RTC static struct tm tm; +#endif /* !defined SIMULATOR || !CONFIG_RTC */ +#if !CONFIG_RTC static void fill_default_tm(struct tm *tm) { tm->tm_sec = 0; @@ -43,7 +44,7 @@ static void fill_default_tm(struct tm *tm) tm->tm_yday = 0; /* Not implemented for now */ tm->tm_isdst = -1; /* Not implemented for now */ } -#endif /* !(defined SIMULATOR && CONFIG_RTC)*/ +#endif /* !CONFIG_RTC */ bool valid_time(const struct tm *tm) { |