From a265a4cf311818061e569d21d315ed8f7dd91414 Mon Sep 17 00:00:00 2001 From: Tobias Leibner <7058290+tobiasleibner@users.noreply.github.com> Date: Wed, 7 May 2025 03:36:42 +0200 Subject: [PATCH] fix: define _DEBUG macro to 1 on redefinition (#5639) According to the msvc documentation, the macro should be defined to 1: https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros --- include/pybind11/conduit/wrap_include_python_h.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/conduit/wrap_include_python_h.h b/include/pybind11/conduit/wrap_include_python_h.h index 316d1afc8..713dc4bb6 100644 --- a/include/pybind11/conduit/wrap_include_python_h.h +++ b/include/pybind11/conduit/wrap_include_python_h.h @@ -50,7 +50,7 @@ #endif #if defined(PYBIND11_DEBUG_MARKER) -# define _DEBUG +# define _DEBUG 1 # undef PYBIND11_DEBUG_MARKER #endif