diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-03-19 19:47:52 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-03-19 19:47:52 +0000 |
commit | 360dc06fdb022a7e5857bdce3175360a61fb4ada (patch) | |
tree | af98278849497e68fafd48e98de8308cfba09509 /newlib/libc/stdlib/wctomb_r.c | |
parent | d09a742ef465d529cf0f1f8afe0cb69333d03c3c (diff) | |
download | cygnal-360dc06fdb022a7e5857bdce3175360a61fb4ada.tar.gz cygnal-360dc06fdb022a7e5857bdce3175360a61fb4ada.tar.bz2 cygnal-360dc06fdb022a7e5857bdce3175360a61fb4ada.zip |
* libc/stdlib/mbtowc_r.c (_mbtowc_r): Return EILSEQ in case of an
invalid character sequence.
* libc/stdlib/mbtowc_r.c (_mbtowc_r): Fix compiler warning due to
missing declaration of __locale_charset.
* libc/stdlib/wctomb_r.c (_wctomb_r): Ditto.
Diffstat (limited to 'newlib/libc/stdlib/wctomb_r.c')
-rw-r--r-- | newlib/libc/stdlib/wctomb_r.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/wctomb_r.c b/newlib/libc/stdlib/wctomb_r.c index 7178514dc..8d6d3fc92 100644 --- a/newlib/libc/stdlib/wctomb_r.c +++ b/newlib/libc/stdlib/wctomb_r.c @@ -5,6 +5,8 @@ #include <locale.h> #include "mbctype.h" +extern char *__locale_charset (); + /* for some conversions, we use the __count field as a place to store a state value */ #define __state __count |