Remove conditional added around set_day_of_week in r31301.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31305 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e38baa0fae
commit
8414a44ad4
2 changed files with 1 additions and 3 deletions
|
@ -105,7 +105,6 @@ int set_time(const struct tm *tm)
|
|||
#endif /* RTC */
|
||||
}
|
||||
|
||||
#if CONFIG_RTC
|
||||
void set_day_of_week(struct tm *tm)
|
||||
{
|
||||
int y=tm->tm_year+1900;
|
||||
|
@ -116,5 +115,4 @@ void set_day_of_week(struct tm *tm)
|
|||
if(m == 0 || m == 1) y--;
|
||||
tm->tm_wday = (d + mo[m] + y + y/4 - y/100 + y/400) % 7;
|
||||
}
|
||||
#endif /* CONFIG_RTC */
|
||||
|
||||
|
|
|
@ -30,8 +30,8 @@ struct tm *get_time(void);
|
|||
int set_time(const struct tm *tm);
|
||||
#if CONFIG_RTC
|
||||
bool valid_time(const struct tm *tm);
|
||||
void set_day_of_week(struct tm *tm);
|
||||
#endif
|
||||
void set_day_of_week(struct tm *tm);
|
||||
|
||||
#endif /* _TIMEFUNCS_H_ */
|
||||
|
||||
|
|
Loading…
Reference in a new issue