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