summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_localemodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c
index d90a49d..fa6ab8f 100644
--- a/Modules/_localemodule.c
+++ b/Modules/_localemodule.c
@@ -281,7 +281,9 @@ PyLocale_strxfrm(PyObject* self, PyObject* args)
wchar_t *s, *buf = NULL;
size_t n1, n2;
PyObject *result = NULL;
+#ifndef HAVE_USABLE_WCHAR_T
Py_ssize_t i;
+#endif
if (!PyArg_ParseTuple(args, "u#:strxfrm", &s0, &n0))
return NULL;