We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9359ce commit 76b8858Copy full SHA for 76b8858
include/pybind11/detail/internals.h
@@ -291,9 +291,12 @@ struct type_info {
291
#endif
292
293
/// On Linux/OSX, changes in __GXX_ABI_VERSION__ indicate ABI incompatibility.
294
+/// On MSVC, changes in _MSC_VER may indicate ABI incompatibility (#2898).
295
#ifndef PYBIND11_BUILD_ABI
296
# if defined(__GXX_ABI_VERSION)
297
# define PYBIND11_BUILD_ABI "_cxxabi" PYBIND11_TOSTRING(__GXX_ABI_VERSION)
298
+# elif defined(_MSC_VER)
299
+# define PYBIND11_BUILD_ABI "_mscver" PYBIND11_TOSTRING(_MSC_VER)
300
# else
301
# define PYBIND11_BUILD_ABI ""
302
# endif
0 commit comments