Browse Source

Fix one missing commit for MSVC

7.0
Seth Hillbrand 4 years ago
parent
commit
8f1b2acdc6
  1. 12
      thirdparty/pybind11/include/pybind11/detail/common.h

12
thirdparty/pybind11/include/pybind11/detail/common.h

@ -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

Loading…
Cancel
Save