From 1d2f9527f1d619a5e1903209d318eb2f2e15a274 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Tue, 15 Oct 2024 14:45:57 -0400 Subject: [PATCH] support only msvc 19 --- include/pybind11/detail/internals.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/include/pybind11/detail/internals.h b/include/pybind11/detail/internals.h index 6901a68ec2..bc8247d965 100644 --- a/include/pybind11/detail/internals.h +++ b/include/pybind11/detail/internals.h @@ -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