diff --git a/cwcwidth/_impl.pyx b/cwcwidth/_impl.pyx index 9eac702..2d0bf68 100644 --- a/cwcwidth/_impl.pyx +++ b/cwcwidth/_impl.pyx @@ -25,7 +25,7 @@ cdef extern from "Python.h": wchar_t* PyUnicode_AsWideCharString(object, Py_ssize_t*) except NULL Py_ssize_t PyUnicode_AsWideChar(object, wchar_t*, Py_ssize_t) -cdef extern from "wchar.h" nogil: +cdef extern from "" nogil: int wcswidth(const wchar_t*, size_t) int wcwidth(wchar_t) size_t wcslen(const wchar_t*)