summaryrefslogtreecommitdiff
path: root/Include/cpython/objimpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/cpython/objimpl.h')
-rw-r--r--Include/cpython/objimpl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/cpython/objimpl.h b/Include/cpython/objimpl.h
index 8e3c964cf4..2f802e92a6 100644
--- a/Include/cpython/objimpl.h
+++ b/Include/cpython/objimpl.h
@@ -138,8 +138,7 @@ PyAPI_FUNC(PyObject *) _PyObject_GC_Calloc(size_t size);
/* Test if a type supports weak references */
#define PyType_SUPPORTS_WEAKREFS(t) ((t)->tp_weaklistoffset > 0)
-#define PyObject_GET_WEAKREFS_LISTPTR(o) \
- ((PyObject **) (((char *) (o)) + Py_TYPE(o)->tp_weaklistoffset))
+PyAPI_FUNC(PyObject **) PyObject_GET_WEAKREFS_LISTPTR(PyObject *op);
#ifdef __cplusplus
}