From dea5c3cc3e15ae2ceb325995a726ca050a42feee Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 5 Apr 2024 02:23:45 +0200 Subject: [PATCH] Fix PyDict_SetDefaultRef() definition --- pythoncapi_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythoncapi_compat.h b/pythoncapi_compat.h index 7dd3ca2..16935df 100644 --- a/pythoncapi_compat.h +++ b/pythoncapi_compat.h @@ -1300,7 +1300,7 @@ PyList_GetItemRef(PyObject *op, Py_ssize_t index) // gh-114329 added PyList_GetItemRef() to Python 3.13.0a4 #if PY_VERSION_HEX < 0x030D00A4 -static int +static inline int PyDict_SetDefaultRef(PyObject *d, PyObject *key, PyObject *default_value, PyObject **result) {