File tree 1 file changed +3
-11
lines changed
1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 37
37
// / further ABI-incompatible changes may be made before the ABI is officially
38
38
// / changed to the new version.
39
39
#ifndef PYBIND11_INTERNALS_VERSION
40
- # if PY_VERSION_HEX >= 0x030C0000 || defined(_MSC_VER)
41
- // Version bump for Python 3.12+, before first 3.12 beta release.
42
- // Version bump for MSVC piggy-backed on PR #4779. See comments there.
43
- # ifdef Py_GIL_DISABLED
44
- # define PYBIND11_INTERNALS_VERSION 6
45
- # else
46
- # define PYBIND11_INTERNALS_VERSION 5
47
- # endif
48
- # else
49
- # define PYBIND11_INTERNALS_VERSION 4
50
- # endif
40
+ # define PYBIND11_INTERNALS_VERSION 6
51
41
#endif
52
42
53
43
// This requirement is mainly to reduce the support burden (see PR #4570).
54
44
static_assert (PY_VERSION_HEX < 0x030C0000 || PYBIND11_INTERNALS_VERSION >= 5 ,
55
45
" pybind11 ABI version 5 is the minimum for Python 3.12+" );
46
+ static_assert (PYBIND11_INTERNALS_VERSION >= 4 ,
47
+ " pybind11 ABI version 4 is the minimum for all platforms." );
56
48
57
49
PYBIND11_NAMESPACE_BEGIN (PYBIND11_NAMESPACE)
58
50
You can’t perform that action at this time.
0 commit comments