Skip to content

Commit

Permalink
gh-89: Fix Py_GetConstant() for Python 3.13.0a5+
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Apr 4, 2024
1 parent b857ae7 commit 68aad45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythoncapi_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ static inline int PyTime_PerfCounter(PyTime_t *result)

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

#define Py_CONSTANT_NONE 0
#define Py_CONSTANT_FALSE 1
Expand Down

0 comments on commit 68aad45

Please sign in to comment.