From 35cb54295de125f93d99049df93b925a26148aa4 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 20 Feb 2024 12:27:57 -0800 Subject: [PATCH] OMG: `PYBIND11_INTERNALS_SH_DEF` was defined the wrong way around since pybind/pybind11#3283 (merged 2021-09-20). (#5026) --- 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