Skip to content

Commit fa5f80f

Browse files
Use version helper
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent df45d6b commit fa5f80f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/boolobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extern "C" {
99

1010
// PyBool_Type is declared by object.h
1111

12-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03100000
12+
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= _Py_PACK_VERSION(3, 16)
1313
PyAPI_FUNC(int) PyBool_Check(PyObject *x);
1414
#endif
1515
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x03100000

0 commit comments

Comments
 (0)