summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index c11a362..932ef51 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -26,10 +26,11 @@ static PyStringObject *nullstring;
static PyObject *interned;
-#if defined(HAVE_MBTOWC) && defined(HAVE_WCHAR_H)
+#if defined(HAVE_MBTOWC) && defined(HAVE_WCHAR_H) && defined(HAVE_WCTYPE_H)
# define PRINT_MULTIBYTE_STRING
# include <locale.h>
# include <wchar.h>
+# include <wctype.h>
# if defined(HAVE_ISWPRINT)
# define _isprint iswprint
# else