diff options
-rw-r--r-- | system/include/libc/stdlib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/system/include/libc/stdlib.h b/system/include/libc/stdlib.h index dd02e6d5..cf7fe8b9 100644 --- a/system/include/libc/stdlib.h +++ b/system/include/libc/stdlib.h @@ -38,7 +38,7 @@ typedef struct long rem; /* remainder */ } ldiv_t; -#ifndef __STRICT_ANSI__ +#if !defined(__STRICT_ANSI__) || defined(EMSCRIPTEN) typedef struct { long long int quot; /* quotient */ @@ -139,7 +139,7 @@ unsigned long _EXFUN(_strtoul_r,(struct _reent *,const char *__n, char **__end_P int _EXFUN(system,(const char *__string)); -#ifndef __STRICT_ANSI__ +#if !defined(__STRICT_ANSI__) || defined(EMSCRIPTEN) long _EXFUN(a64l,(const char *__input)); char * _EXFUN(l64a,(long __input)); char * _EXFUN(_l64a_r,(struct _reent *,long __input)); @@ -186,6 +186,7 @@ long long _EXFUN(atoll,(const char *__nptr)); long long _EXFUN(_atoll_r,(struct _reent *, const char *__nptr)); long long _EXFUN(llabs,(long long)); lldiv_t _EXFUN(lldiv,(long long __numer, long long __denom)); + long long _EXFUN(strtoll,(const char *__n, char **__end_PTR, int __base)); long long _EXFUN(_strtoll_r,(struct _reent *, const char *__n, char **__end_PTR, int __base)); unsigned long long _EXFUN(strtoull,(const char *__n, char **__end_PTR, int __base)); |