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:
parent
fb79ae4603
commit
eaa9df37e0
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue