Skip to content

Commit e2bac98

Browse files
Update pythoncapi_compat.h
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent c201d29 commit e2bac98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythoncapi_compat.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2664,10 +2664,11 @@ PyUnstable_Unicode_GET_CACHED_HASH(PyObject *op)
26642664
// to make objects immortal until 3.14 which has _Py_SetImmortal(). Since
26652665
// immortal objects are primarily needed for free-threading, this API is implemented
26662666
// for 3.14 and above.
2667-
extern void _Py_SetImmortal(PyObject *op);
26682667
static inline int
26692668
PyUnstable_SetImmortal(PyObject *op)
26702669
{
2670+
PyAPI_FUNC(void) _Py_SetImmortal(PyObject *op);
2671+
26712672
assert(op != NULL);
26722673
if (!PyUnstable_Object_IsUniquelyReferenced(op) || PyUnicode_Check(op)) {
26732674
return 0;

0 commit comments

Comments
 (0)