Fix yellow introduced in r21561

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21563 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Alexander Levin 2009-06-29 14:58:02 +00:00
parent fb79ae4603
commit eaa9df37e0

View file

@ -27,10 +27,11 @@
#include "timefuncs.h" #include "timefuncs.h"
#include "debug.h" #include "debug.h"
#if !(defined SIMULATOR && CONFIG_RTC) #if !defined SIMULATOR || !CONFIG_RTC
static struct tm tm; static struct tm tm;
#endif /* !defined SIMULATOR || !CONFIG_RTC */
#if !CONFIG_RTC
static void fill_default_tm(struct tm *tm) static void fill_default_tm(struct tm *tm)
{ {
tm->tm_sec = 0; 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_yday = 0; /* Not implemented for now */
tm->tm_isdst = -1; /* 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) bool valid_time(const struct tm *tm)
{ {