Skip to content

Commit

Permalink
Use _MSC_VER/100
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Oct 1, 2024
1 parent d1695f1 commit 4c6c344
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/pybind11/detail/internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,8 @@ struct type_info {
# define PYBIND11_BUILD_ABI "_cxxabi" PYBIND11_TOSTRING(__GXX_ABI_VERSION)
# elif defined(_MSC_VER) && defined(_MT)
# define PYBIND11_BUILD_ABI "_mt_mscver" PYBIND11_TOSTRING(_MSC_VER)
# elif defined(_MSC_VER) && defined(_MD) && (_MSC_VER >= 1900) && (_MSC_VER < 2000)
# define PYBIND11_BUILD_ABI "_md_mscver14"
# elif defined(_MSC_VER) && defined(_MD)
# define PYBIND11_BUILD_ABI "_md_mscver" PYBIND11_TOSTRING(_MSC_VER)
# define PYBIND11_BUILD_ABI "_md_mscver" PYBIND11_TOSTRING(((int) (_MSC_VER) / 100))
# else
# define PYBIND11_BUILD_ABI ""
# endif
Expand Down

0 comments on commit 4c6c344

Please sign in to comment.