summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string')
-rw-r--r--newlib/libc/string/wcwidth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/string/wcwidth.c b/newlib/libc/string/wcwidth.c
index f825be6ab..ac5c47f67 100644
--- a/newlib/libc/string/wcwidth.c
+++ b/newlib/libc/string/wcwidth.c
@@ -94,6 +94,9 @@ PORTABILITY
#include <_ansi.h>
#include <wchar.h>
+#ifndef _MB_CAPABLE
+#include <wctype.h> /* iswprint, iswcntrl */
+#endif
#include "local.h"
#ifdef _MB_CAPABLE