Skip to content

Commit a265a4c

Browse files
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
1 parent 099583c commit a265a4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/conduit/wrap_include_python_h.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#endif
5151

5252
#if defined(PYBIND11_DEBUG_MARKER)
53-
# define _DEBUG
53+
# define _DEBUG 1
5454
# undef PYBIND11_DEBUG_MARKER
5555
#endif
5656

0 commit comments

Comments
 (0)