Skip to content

Commit

Permalink
Revert "fix: Different MSVC versions may be ABI incompatible, guard w…
Browse files Browse the repository at this point in the history
…ith _MSC_VER (pybind#2898) (pybind#4779)"

This reverts commit 76b8858.
  • Loading branch information
mhochsteger committed Jun 18, 2024
1 parent 3e9dfa2 commit 38bf7b1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/pybind11/detail/internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,9 @@ struct type_info {
#endif

/// On Linux/OSX, changes in __GXX_ABI_VERSION__ indicate ABI incompatibility.
/// On MSVC, changes in _MSC_VER may indicate ABI incompatibility (#2898).
#ifndef PYBIND11_BUILD_ABI
# if defined(__GXX_ABI_VERSION)
# define PYBIND11_BUILD_ABI "_cxxabi" PYBIND11_TOSTRING(__GXX_ABI_VERSION)
# elif defined(_MSC_VER)
# define PYBIND11_BUILD_ABI "_mscver" PYBIND11_TOSTRING(_MSC_VER)
# else
# define PYBIND11_BUILD_ABI ""
# endif
Expand Down

0 comments on commit 38bf7b1

Please sign in to comment.