From 37d04abdee11403e98bc5c09e386dd49d58a58bd Mon Sep 17 00:00:00 2001 From: JGamache-autodesk <56274617+JGamache-autodesk@users.noreply.github.com> Date: Thu, 19 Dec 2019 06:15:42 -0500 Subject: [PATCH] Fixes #1295: Handle debug interpreter (#2025) If a debug interpreter is detected, we allow linking with pythonXX_d.lib under windows. --- include/pybind11/detail/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index e2330bbe6..de10f73b5 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -103,7 +103,7 @@ # endif # pragma warning(push) # pragma warning(disable: 4510 4610 4512 4005) -# if defined(_DEBUG) +# if defined(_DEBUG) && !defined(Py_DEBUG) # define PYBIND11_DEBUG_MARKER # undef _DEBUG # endif