Fix mbtowc() to and compile it.

This commit is contained in:
Sebastian Bauer 2018-03-28 17:08:42 +02:00
parent 75d47ccdad
commit 846eebc66c
2 changed files with 4 additions and 3 deletions

View File

@ -234,6 +234,7 @@ C_LIB := \
stdlib_main_stub.o \
stdlib_malloc.o \
stdlib_math.o \
stdlib_mbtowc.o \
stdlib_mkdtemp.o \
stdlib_mkstemp.o \
stdlib_mktemp.o \

View File

@ -37,13 +37,13 @@
/****************************************************************************/
#if defined(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
int
mbtowc(wchar_t *restrict pwc, const char *restrict s, size_t n)
{
/* ZZZ unimplemented */
return(-1);
errno = EILSEQ;
return -1;
}
#endif