mescc: Tinycc support: free stub.

* mlibc/include/stdlib.h (free): Declare.
* mlibc/libc-mes+tcc.c (free): Add stub.
This commit is contained in:
Jan Nieuwenhuizen 2017-07-24 18:24:51 +02:00
parent 60de51241a
commit 8f2c74c1cb
2 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,7 @@ typedef long size_t;
int atoi (char const *s);
void exit (int);
void free (void *ptr);
char* getenv (char const* s);
void *malloc (size_t);
void qsort (void *base, size_t nmemb, size_t size, int (*compar)(void const *, void const *));

View File

@ -83,6 +83,11 @@ fprintf (FILE *stream, char const *format, ...)
return 0;
}
void
free (void *ptr)
{
}
size_t
fwrite (void const *ptr, size_t size, size_t nmemb, FILE *stream)
{