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 003f50b commit e2cf52bCopy full SHA for e2cf52b
pybind11/include/pybind11/detail/common.h
@@ -116,6 +116,14 @@
116
# pragma warning(push)
117
# pragma warning(disable: 4510 4610 4512 4005)
118
# if defined(_DEBUG) && !defined(Py_DEBUG)
119
+// Workaround for a VS 2022 issue.
120
+// NOTE: This workaround knowingly violates the Python.h include order requirement:
121
+// https://docs.python.org/3/c-api/intro.html#include-files
122
+// See https://github.com/pybind/pybind11/pull/3497 for full context.
123
+# include <yvals.h>
124
+# if _MSVC_STL_VERSION >= 143
125
+# include <crtdefs.h>
126
+# endif
127
# define PYBIND11_DEBUG_MARKER
128
# undef _DEBUG
129
# endif
0 commit comments