From fd738f3e6ea570ed7362cec45690f65dd02f8037 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 14 Feb 2024 12:42:58 -0800 Subject: [PATCH] OMG: `PYBIND11_INTERNALS_SH_DEF` was defined the wrong way around since pybind/pybind11#3283 (merged 2021-09-20). --- include/pybind11/detail/internals.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/pybind11/detail/internals.h b/include/pybind11/detail/internals.h index d5a69d4b62..3eb04cef67 100644 --- a/include/pybind11/detail/internals.h +++ b/include/pybind11/detail/internals.h @@ -316,9 +316,9 @@ struct type_info { /// Classic / Conservative / Progressive cross-module compatibility #ifndef PYBIND11_INTERNALS_SH_DEF # if defined(PYBIND11_USE_SMART_HOLDER_AS_DEFAULT) -# define PYBIND11_INTERNALS_SH_DEF "" -# else # define PYBIND11_INTERNALS_SH_DEF "_sh_def" +# else +# define PYBIND11_INTERNALS_SH_DEF "" # endif #endif