Skip to content

Commit

Permalink
Fix PyPy 7.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Mar 9, 2024
1 parent 2358582 commit 350e8ae
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pythoncapi_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -1196,9 +1196,11 @@ static inline int PyTime_PerfCounter(PyTime_t *result)

#endif

// gh-111389 added hash constants to Python 3.13.0a5.
// These constants were first added as private to Python 3.4.0b1.
#if !defined(PyHASH_BITS) && PY_VERSION_HEX >= 0x030400B1
// gh-111389 added hash constants to Python 3.13.0a5. These constants were
// added first as private macros to Python 3.4.0b1 and PyPy 7.3.9.
#if !defined(PyHASH_BITS) \
&& ((defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM >= 0x07030900) \
|| (!defined(PYPY_VERSION_NUM) && PY_VERSION_HEX >= 0x030400B1))
# define PyHASH_BITS _PyHASH_BITS
# define PyHASH_MODULUS _PyHASH_MODULUS
# define PyHASH_INF _PyHASH_INF
Expand Down

0 comments on commit 350e8ae

Please sign in to comment.