From 9f44c4875a793cae8f9e279515379fa3be4fab44 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 24 Jul 2017 18:12:28 +0200 Subject: [PATCH] mescc: Tinycc support: strtoll stub. * mlibc/include/stdlib.h (strtoll): Declare. * mlibc/libc-mes+tcc.c (strtoll): Add stub. --- mlibc/include/stdlib.h | 1 + mlibc/libc-mes+tcc.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/mlibc/include/stdlib.h b/mlibc/include/stdlib.h index cc5f32ea..0525bb2c 100644 --- a/mlibc/include/stdlib.h +++ b/mlibc/include/stdlib.h @@ -40,6 +40,7 @@ void *malloc (size_t); void qsort (void *base, size_t nmemb, size_t size, int (*compar)(void const *, void const *)); void *realloc (void *p, size_t size); long strtol (char const *nptr, char **endptr, int base); +long long strtoll (char const *nptr, char **endptr, int base); unsigned long strtoul (char const *nptr, char **endptr, int base); unsigned long long strtoull (char const *nptr, char **endptr, int base); diff --git a/mlibc/libc-mes+tcc.c b/mlibc/libc-mes+tcc.c index 797ff1fb..da56ff35 100644 --- a/mlibc/libc-mes+tcc.c +++ b/mlibc/libc-mes+tcc.c @@ -142,6 +142,12 @@ strtol (char const *nptr, char **endptr, int base) return 0; } +long long int +strtoll (char const *nptr, char **endptr, int base) +{ + return 0; +} + unsigned long strtoul (char const *nptr, char **endptr, int base) {