Skip to content

Commit 7139f4c

Browse files
committed
[mypyc] Fix wheel build for cp313-win
1 parent 706680f commit 7139f4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/lib-rt/pythoncapi_compat.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ static inline int PyUnicode_Equal(PyObject *str1, PyObject *str2)
15371537
}
15381538

15391539
#if PY_VERSION_HEX >= 0x030d0000 && !defined(PYPY_VERSION)
1540-
extern int _PyUnicode_Equal(PyObject *str1, PyObject *str2);
1540+
PyAPI_FUNC(int) _PyUnicode_Equal(PyObject *str1, PyObject *str2);
15411541

15421542
return _PyUnicode_Equal(str1, str2);
15431543
#elif PY_VERSION_HEX >= 0x03060000 && !defined(PYPY_VERSION)
@@ -1564,7 +1564,7 @@ static inline PyObject* PyBytes_Join(PyObject *sep, PyObject *iterable)
15641564
static inline Py_hash_t Py_HashBuffer(const void *ptr, Py_ssize_t len)
15651565
{
15661566
#if PY_VERSION_HEX >= 0x03000000 && !defined(PYPY_VERSION)
1567-
extern Py_hash_t _Py_HashBytes(const void *src, Py_ssize_t len);
1567+
PyAPI_FUNC(Py_hash_t) _Py_HashBytes(const void *src, Py_ssize_t len);
15681568

15691569
return _Py_HashBytes(ptr, len);
15701570
#else

0 commit comments

Comments
 (0)