mescc: Tinycc support: fprintf stub.
* mlibc/include/stdio.h (fprintf): Declare. * mlibc/libc-mes+tcc.c (fprintf): Add stub.
This commit is contained in:
parent
702a1f9f54
commit
718410e426
|
@ -90,7 +90,13 @@ int fdputs (char const* s, int fd);
|
|||
|
||||
typedef int FILE;
|
||||
|
||||
#ifndef __MES_SIZE_T
|
||||
#define __MES_SIZE_T
|
||||
typedef unsigned long size_t;
|
||||
#endif
|
||||
|
||||
int eputs (char const* s);
|
||||
int fprintf (FILE *stream, char const *format, ...);
|
||||
int fputc (int c, int fd);
|
||||
int fputs (char const* s, int fd);
|
||||
int getchar ();
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include <libc-mes.c>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
|
@ -31,6 +32,12 @@ close ()
|
|||
asm ("int____$0x80");
|
||||
}
|
||||
|
||||
int
|
||||
fprintf (FILE *stream, char const *format, ...)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct tm *
|
||||
localtime (time_t const *timep)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue