From 8f2c74c1cb2c817ba86d29fe7a04eeb7acd38b59 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 24 Jul 2017 18:24:51 +0200 Subject: [PATCH] mescc: Tinycc support: free stub. * mlibc/include/stdlib.h (free): Declare. * mlibc/libc-mes+tcc.c (free): Add stub. --- mlibc/include/stdlib.h | 1 + mlibc/libc-mes+tcc.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/mlibc/include/stdlib.h b/mlibc/include/stdlib.h index 0525bb2c..45eacc6c 100644 --- a/mlibc/include/stdlib.h +++ b/mlibc/include/stdlib.h @@ -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 *)); diff --git a/mlibc/libc-mes+tcc.c b/mlibc/libc-mes+tcc.c index 2677961a..4d3dbf10 100644 --- a/mlibc/libc-mes+tcc.c +++ b/mlibc/libc-mes+tcc.c @@ -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) {