Fix one missing commit for MSVC

This commit is contained in:
Seth Hillbrand 2022-06-20 16:40:47 -07:00
parent c483c58276
commit 8f1b2acdc6
1 changed files with 0 additions and 12 deletions

View File

@ -157,18 +157,6 @@
# pragma warning(push)
// C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only)
# pragma warning(disable : 4505)
# if defined(_DEBUG) && !defined(Py_DEBUG)
// Workaround for a VS 2022 issue.
// NOTE: This workaround knowingly violates the Python.h include order requirement:
// https://docs.python.org/3/c-api/intro.html#include-files
// See https://github.com/pybind/pybind11/pull/3497 for full context.
# include <yvals.h>
# if _MSVC_STL_VERSION >= 143
# include <crtdefs.h>
# endif
# define PYBIND11_DEBUG_MARKER
# undef _DEBUG
# endif
# pragma warning(disable: 4510 4610 4512 4005)
#endif