From f19996761e7272b03d8833e95e9694bf4a7ef76c Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Sat, 23 Jan 2021 08:53:27 +0100 Subject: [PATCH] Use #include <> --- cwcwidth/_impl.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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*)