Skip to content

Commit 0280559

Browse files
fix 3.14
1 parent 3ccded6 commit 0280559

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pythoncapi_compat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,9 @@ PyUnstable_Unicode_GET_CACHED_HASH(PyObject *op)
26672667
static inline int
26682668
PyUnstable_SetImmortal(PyObject *op)
26692669
{
2670+
#if 0x030E0000 <= PY_VERSION_HEX
26702671
PyAPI_FUNC(void) _Py_SetImmortal(PyObject *op);
2672+
#else
26712673

26722674
assert(op != NULL);
26732675
if (!PyUnstable_Object_IsUniquelyReferenced(op) || PyUnicode_Check(op)) {

0 commit comments

Comments
 (0)