mescc: Tinycc support: localtime stub.

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

View file

@ -38,6 +38,7 @@ struct tm {
int tm_isdst; /* Daylight saving time */
};
struct tm *localtime (time_t const *timep);
time_t time (time_t *tloc);
#endif // ! (__GNUC__ && POSIX)

View file

@ -31,6 +31,12 @@ close ()
asm ("int____$0x80");
}
struct tm *
localtime (time_t const *timep)
{
return 0;
}
void *
memcpy (void *dest, void const *src, size_t n)
{