File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 3737// / further ABI-incompatible changes may be made before the ABI is officially
3838// / changed to the new version.
3939#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
5141#endif
5242
5343// This requirement is mainly to reduce the support burden (see PR #4570).
5444static_assert (PY_VERSION_HEX < 0x030C0000 || PYBIND11_INTERNALS_VERSION >= 5 ,
5545 " 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." );
5648
5749PYBIND11_NAMESPACE_BEGIN (PYBIND11_NAMESPACE)
5850
You can’t perform that action at this time.
0 commit comments