mirror of https://github.com/adtools/clib2.git
Fix mbtowc() to and compile it.
This commit is contained in:
parent
75d47ccdad
commit
846eebc66c
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue