mescc: Tinycc support: time stub.
* mlibc/include/time.h (time): Declare. * mlibc/libc-mes+tcc.c (time): Add stub.
This commit is contained in:
parent
beb24d9550
commit
aa297a28a9
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue