mescc: Tinycc support: localtime stub.
* mlibc/include/time.h (localtime): Declare. * mlibc/libc-mes+tcc.c (localtime): Add stub.
This commit is contained in:
parent
aa297a28a9
commit
702a1f9f54
|
@ -38,6 +38,7 @@ struct tm {
|
||||||
int tm_isdst; /* Daylight saving time */
|
int tm_isdst; /* Daylight saving time */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct tm *localtime (time_t const *timep);
|
||||||
time_t time (time_t *tloc);
|
time_t time (time_t *tloc);
|
||||||
|
|
||||||
#endif // ! (__GNUC__ && POSIX)
|
#endif // ! (__GNUC__ && POSIX)
|
||||||
|
|
|
@ -31,6 +31,12 @@ close ()
|
||||||
asm ("int____$0x80");
|
asm ("int____$0x80");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct tm *
|
||||||
|
localtime (time_t const *timep)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
void *
|
void *
|
||||||
memcpy (void *dest, void const *src, size_t n)
|
memcpy (void *dest, void const *src, size_t n)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue