Skip to content

Commit d715b50

Browse files
committed
Bug fix: Need to test _MSC_FULL_VER (not _MSC_VER).
1 parent c5a37d1 commit d715b50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/detail/descr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ PYBIND11_NAMESPACE_BEGIN(detail)
4747
&& !defined(__INTEL_COMPILER) \
4848
&& (!defined(_MSC_VER) \
4949
|| (_MSC_VER >= 1920 /* MSVC 2019 or newer */ \
50-
&& (_MSC_VER != 193732825 || defined(PYBIND11_CPP20))))
50+
&& (_MSC_FULL_VER != 193732825 || defined(PYBIND11_CPP20))))
5151
# define PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD
5252
#endif
5353

0 commit comments

Comments
 (0)