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 72390f6 commit 30a79b7Copy full SHA for 30a79b7
include/pybind11/pybind11.h
@@ -10,6 +10,23 @@
10
11
#pragma once
12
13
+/* https://github.com/microsoft/onnxruntime/issues/9735#issuecomment-970718821
14
+ * The following block patches MSVC debug builds:
15
+ * Include Python header, disable linking to pythonX_d.lib on Windows in debug mode.
16
+ */
17
+#if defined(_MSC_VER)
18
+# if (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 4)
19
+# define HAVE_ROUND 1
20
+# endif
21
+# include <corecrt.h>
22
+# pragma warning(push)
23
+# pragma warning(disable : 4510 4610 4512 4005)
24
+# if defined(_DEBUG) && !defined(Py_DEBUG)
25
+# define PYBIND11_DEBUG_MARKER
26
+# undef _DEBUG
27
28
+#endif
29
+
30
#include "detail/class.h"
31
#include "detail/init.h"
32
#include "attr.h"
0 commit comments