From 3d39f2939ae41ca10c6931ccb4d9817b0ff6daeb Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 1 Dec 2023 22:29:58 -0800 Subject: [PATCH] Similar to pybind/pybind11#4918: continue to be very specific. --- include/pybind11/detail/descr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/pybind11/detail/descr.h b/include/pybind11/detail/descr.h index c5e80d9b4..d447046d3 100644 --- a/include/pybind11/detail/descr.h +++ b/include/pybind11/detail/descr.h @@ -47,7 +47,8 @@ PYBIND11_NAMESPACE_BEGIN(detail) && !defined(__INTEL_COMPILER) \ && (!defined(_MSC_VER) \ || (_MSC_VER >= 1920 /* MSVC 2019 or newer */ \ - && (_MSC_FULL_VER != 193732825 || defined(PYBIND11_CPP20)))) + && (_MSC_FULL_VER < 193732825 || _MSC_FULL_VER > 193732826 \ + || defined(PYBIND11_CPP20)))) # define PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD #endif