aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/libc/stdlib/mbtowc_r.c8
-rw-r--r--newlib/libc/stdlib/wctomb_r.c4
2 files changed, 0 insertions, 12 deletions
diff --git a/newlib/libc/stdlib/mbtowc_r.c b/newlib/libc/stdlib/mbtowc_r.c
index 01e596d..cab8333 100644
--- a/newlib/libc/stdlib/mbtowc_r.c
+++ b/newlib/libc/stdlib/mbtowc_r.c
@@ -36,14 +36,6 @@ __ascii_mbtowc (struct _reent *r,
if (n == 0)
return -2;
-#ifdef __CYGWIN__
- if ((wchar_t)*t >= 0x80)
- {
- _REENT_ERRNO(r) = EILSEQ;
- return -1;
- }
-#endif
-
*pwc = (wchar_t)*t;
if (*t == '\0')
diff --git a/newlib/libc/stdlib/wctomb_r.c b/newlib/libc/stdlib/wctomb_r.c
index 3081e93..5ea1e13 100644
--- a/newlib/libc/stdlib/wctomb_r.c
+++ b/newlib/libc/stdlib/wctomb_r.c
@@ -29,11 +29,7 @@ __ascii_wctomb (struct _reent *r,
if (s == NULL)
return 0;
-#ifdef __CYGWIN__
- if ((size_t)wchar >= 0x80)
-#else
if ((size_t)wchar >= 0x100)
-#endif
{
_REENT_ERRNO(r) = EILSEQ;
return -1;