From 4a9909c091402d56030c8fa66678ad0d5b2bd562 Mon Sep 17 00:00:00 2001 From: Tobias Leibner <7058290+tobiasleibner@users.noreply.github.com> Date: Mon, 5 May 2025 11:33:51 +0200 Subject: [PATCH] Define _DEBUG macro to 1 on redefinition 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 316d1afc84..713dc4bb6a 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