Skip to content

Commit a2ba4af

Browse files
committed
COMP: Remove _Py_HashPointer as undefined symbol.
1 parent c9a6302 commit a2ba4af

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/PythonQtSignal.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ meth_hash(PythonQtSignalFunctionObject *a)
360360
}
361361
#if PY_VERSION_HEX >= 0x30D0000 /* 0x30D0000 == 3.13.0a0 */
362362
y = Py_HashPointer((void*)(a->m_ml)); /* public in 3.13+ */
363-
#elif !defined(Py_LIMITED_API)
364-
/* fallback: use CPython’s private helper (requires full API) */
365-
y = _Py_HashPointer((void*)(a->m_ml));
363+
// #elif !defined(Py_LIMITED_API)
364+
// /* fallback: use CPython’s private helper (requires full API) */
365+
// y = _Py_HashPointer((void*)(a->m_ml));
366366
#else
367367
/* portable fallback for the limited/stable ABI */
368368
uintptr_t v = (uintptr_t)(void*)(a->m_ml);

src/PythonQtSlot.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -764,12 +764,11 @@ meth_hash(PythonQtSlotFunctionObject *a)
764764
if (x == -1)
765765
return -1;
766766
}
767-
y = _Py_HashPointer((void*)(a->m_ml));
768767
#if PY_VERSION_HEX >= 0x30D0000 /* 0x30D0000 == 3.13.0a0 */
769768
y = Py_HashPointer((void*)(a->m_ml)); /* public in 3.13+ */
770-
#elif !defined(Py_LIMITED_API)
771-
/* fallback: use CPython’s private helper (requires full API) */
772-
y = _Py_HashPointer((void*)(a->m_ml));
769+
// #elif !defined(Py_LIMITED_API)
770+
// /* fallback: use CPython’s private helper (requires full API) */
771+
// y = _Py_HashPointer((void*)(a->m_ml));
773772
#else
774773
/* portable fallback for the limited/stable ABI */
775774
uintptr_t v = (uintptr_t)(void*)(a->m_ml);

0 commit comments

Comments
 (0)