Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-19 22:47:52 +0300
committerCorinna Vinschen <corinna@vinschen.de>2009-03-19 22:47:52 +0300
commit360dc06fdb022a7e5857bdce3175360a61fb4ada (patch)
treeaf98278849497e68fafd48e98de8308cfba09509 /newlib/libc/stdlib/wctomb_r.c
parentd09a742ef465d529cf0f1f8afe0cb69333d03c3c (diff)
* 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.c2
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