Skip to content

Commit 68aad45

Browse files
committed
gh-89: Fix Py_GetConstant() for Python 3.13.0a5+
1 parent b857ae7 commit 68aad45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythoncapi_compat.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ static inline int PyTime_PerfCounter(PyTime_t *result)
12111211

12121212
// gh-111545 added Py_GetConstant() and Py_GetConstantBorrowed()
12131213
// to Python 3.13.0a6
1214-
#if PY_VERSION_HEX < 0x030D00A6
1214+
#if PY_VERSION_HEX < 0x030D00A6 && !defined(Py_CONSTANT_NONE)
12151215

12161216
#define Py_CONSTANT_NONE 0
12171217
#define Py_CONSTANT_FALSE 1

0 commit comments

Comments
 (0)