mescc: Tinycc support: fflush stub.

* mlibc/include/stdio.h (fflush): Declare.
* mlibc/libc-mes+tcc.c (fflush): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 19:07:18 +02:00
parent ff16c5a31f
commit f711b2f005
2 changed files with 8 additions and 0 deletions

View File

@ -98,6 +98,7 @@ typedef unsigned long size_t;
int eputs (char const* s);
int fclose (FILE *stream);
FILE *fdopen (int fd, char const *mode);
int fflush (FILE *stream);
int fprintf (FILE *stream, char const *format, ...);
int fputc (int c, int fd);
int fputs (char const* s, int fd);

View File

@ -19,6 +19,7 @@
*/
#include <libc-mes.c>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -77,6 +78,12 @@ fdopen (int fd, char const *mode)
return 0;
}
int
fflush (FILE *stream)
{
return 0;
}
int
fprintf (FILE *stream, char const *format, ...)
{