Skip to content

Commit 85dd61c

Browse files
committed
_MSC_VER <= 1916
1 parent e8e52a4 commit 85dd61c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/pybind11/detail/common.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -913,11 +913,12 @@ inline static std::shared_ptr<T> try_get_shared_from_this(std::enable_shared_fro
913913
#endif
914914
}
915915

916-
#if defined(_MSC_VER)
916+
#if defined(_MSC_VER) && _MSC_VER <= 1916
917917
inline constexpr void workaround_incorrect_msvc_c4100(...) {}
918-
#define PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100(...) detail::workaround_incorrect_msvc_c4100(__VA_ARGS__)
918+
# define PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100(...) \
919+
detail::workaround_incorrect_msvc_c4100(__VA_ARGS__)
919920
#else
920-
#define PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100(...)
921+
# define PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100(...)
921922
#endif
922923

923924
PYBIND11_NAMESPACE_END(detail)

0 commit comments

Comments
 (0)