From d8c30a8f2df87007ca2a5679119af50aff5c0695 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 18 Nov 2021 09:56:35 -0500 Subject: [PATCH] fix: drop _DEBUG undefinition --- include/pybind11/detail/common.h | 4 ---- include/pybind11/pybind11.h | 5 ----- 2 files changed, 9 deletions(-) diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index 862451fd1..5d9162b88 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -153,10 +153,6 @@ # pragma warning(push) // C4505: 'PySlice_GetIndicesEx': unreferenced local function has been removed (PyPy only) # pragma warning(disable: 4505) -# if defined(_DEBUG) && !defined(Py_DEBUG) -# define PYBIND11_DEBUG_MARKER -# undef _DEBUG -# endif #endif // https://en.cppreference.com/w/c/chrono/localtime diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index 5d861546f..c0f074137 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -10,11 +10,6 @@ #pragma once -// Bug in MSVC 2022 requiring this file first -#if defined(_MSC_VER) && (_MSC_VER >= 1930) -#include -#endif - #include "attr.h" #include "gil.h" #include "options.h"