mescc: Tinycc support: time stub.

* mlibc/include/time.h (time): Declare.
* mlibc/libc-mes+tcc.c (time): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 13:25:54 +02:00
parent beb24d9550
commit aa297a28a9
2 changed files with 8 additions and 0 deletions

View File

@ -37,6 +37,9 @@ struct tm {
int tm_yday; /* Day in the year (0-365, 1 Jan = 0) */
int tm_isdst; /* Daylight saving time */
};
time_t time (time_t *tloc);
#endif // ! (__GNUC__ && POSIX)
#endif // __MES_TIME_H

View File

@ -20,6 +20,7 @@
#include <libc-mes.c>
#include <string.h>
#include <time.h>
void
close ()
@ -66,3 +67,7 @@ strtoul (char const *nptr, char **endptr, int base)
return 0;
}
time_t time (time_t *tloc)
{
return 0;
}