Skip to content

Commit

Permalink
support only msvc 19
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Oct 15, 2024
1 parent 9ce2def commit 1d2f952
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions include/pybind11/detail/internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,21 +312,12 @@ struct type_info {

/// On Linux/OSX, changes in __GXX_ABI_VERSION__ indicate ABI incompatibility.
/// On MSVC, mixing /MT and /MD will result in crashes. See (#4953)
/// There is no macro for major version for MSVC, so we check for major version
/// 19, 20, 21, 22 for now as major version 19 is MSVC 2015-2022 and we future
/// proof for 3 major versions in the future
#ifndef PYBIND11_BUILD_ABI
# if defined(__GXX_ABI_VERSION)
# define PYBIND11_BUILD_ABI "_cxxabi" PYBIND11_TOSTRING(__GXX_ABI_VERSION)
# elif defined(_MSC_VER) && defined(_DLL) && defined(_MT)
# if ((_MSC_VER) / 100 == 19)
# define PYBIND11_BUILD_ABI "_md_mscver19"
# elif ((_MSC_VER) / 100 == 20)
# define PYBIND11_BUILD_ABI "_md_mscver20"
# elif ((_MSC_VER) / 100 == 21)
# define PYBIND11_BUILD_ABI "_md_mscver21"
# elif ((_MSC_VER) / 100 == 22)
# define PYBIND11_BUILD_ABI "_md_mscver22"
# else
# error "Unknown major version for MSC_VER"
# endif
Expand Down

0 comments on commit 1d2f952

Please sign in to comment.