FS#7353 - mktime() is only used by targets that have an RTC
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13883 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
227a733e42
commit
ef65d91492
2 changed files with 4 additions and 0 deletions
|
@ -131,6 +131,7 @@ int set_time(const struct tm *tm)
|
|||
#endif
|
||||
}
|
||||
|
||||
#if CONFIG_RTC
|
||||
/* mktime() code taken from lynx-2.8.5 source, written
|
||||
by Philippe De Muyter <phdm@macqel.be> */
|
||||
time_t mktime(struct tm *t)
|
||||
|
@ -165,3 +166,4 @@ time_t mktime(struct tm *t)
|
|||
result += t->tm_sec;
|
||||
return(result);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -27,6 +27,8 @@
|
|||
struct tm *get_time(void);
|
||||
int set_time(const struct tm *tm);
|
||||
bool valid_time(const struct tm *tm);
|
||||
#if CONFIG_RTC
|
||||
time_t mktime(struct tm *t);
|
||||
#endif
|
||||
|
||||
#endif /* _TIMEFUNCS_H_ */
|
||||
|
|
Loading…
Reference in a new issue