4242# define PYBIND11_INTERNALS_VERSION 12
4343#endif
4444
45- #if PYBIND11_INTERNALS_VERSION < 11
46- # error "PYBIND11_INTERNALS_VERSION 11 is the minimum for all platforms for pybind11v3."
45+ #if PYBIND11_INTERNALS_VERSION < 12
46+ # error "PYBIND11_INTERNALS_VERSION 12 is the minimum for all platforms for pybind11v3."
4747#endif
4848
4949PYBIND11_NAMESPACE_BEGIN (PYBIND11_NAMESPACE)
@@ -273,14 +273,12 @@ struct internals {
273273 pymutex mutex;
274274 pymutex exception_translator_mutex;
275275#endif
276- #if PYBIND11_INTERNALS_VERSION >= 12
277276 // non-normative but fast "hint" for registered_types_cpp. Meant
278277 // to be used as the first level of a two-level lookup: successful
279278 // lookups are correct, but unsuccessful lookups need to try
280279 // registered_types_cpp and then backfill this map if they find
281280 // anything.
282281 fast_type_map<type_info *> registered_types_cpp_fast;
283- #endif
284282
285283 // std::type_index -> pybind11's type information
286284 type_map<type_info *> registered_types_cpp;
@@ -306,9 +304,6 @@ struct internals {
306304 PyObject *instance_base = nullptr ;
307305 // Unused if PYBIND11_SIMPLE_GIL_MANAGEMENT is defined:
308306 thread_specific_storage<PyThreadState> tstate;
309- #if PYBIND11_INTERNALS_VERSION <= 11
310- thread_specific_storage<loader_life_support> loader_life_support_tls; // OBSOLETE (PR #5830)
311- #endif
312307 // Unused if PYBIND11_SIMPLE_GIL_MANAGEMENT is defined:
313308 PyInterpreterState *istate = nullptr ;
314309
@@ -396,7 +391,6 @@ struct type_info {
396391 void *(*module_local_load)(PyObject *, const type_info *) = nullptr ;
397392 holder_enum_t holder_enum_v = holder_enum_t ::undefined;
398393
399- #if PYBIND11_INTERNALS_VERSION >= 12
400394 // When a type appears in multiple DSOs,
401395 // internals::registered_types_cpp_fast will have multiple distinct
402396 // keys (the std::type_info from each DSO) mapped to the same
@@ -407,7 +401,6 @@ struct type_info {
407401 // nb_alias_chain` added in
408402 // https://github.com/wjakob/nanobind/commit/b515b1f7f2f4ecc0357818e6201c94a9f4cbfdc2
409403 std::forward_list<const std::type_info *> alias_chain;
410- #endif
411404
412405 /* A simple type never occurs as a (direct or indirect) parent
413406 * of a class that makes use of multiple inheritance.
0 commit comments