From c2d1d958091c4cc4c7fc362fbf61a03623fba3b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20M=C3=B6ller?= Date: Tue, 31 Jan 2017 16:54:49 +0100 Subject: [PATCH] Update common.h (#606) fixed VS build, when _DEBUG is just defined without any value assigned (e.g. VS15) --- include/pybind11/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/common.h b/include/pybind11/common.h index a0894ead..ecd326c1 100644 --- a/include/pybind11/common.h +++ b/include/pybind11/common.h @@ -61,7 +61,7 @@ # define HAVE_ROUND # pragma warning(push) # pragma warning(disable: 4510 4610 4512 4005) -# if _DEBUG +# if defined(_DEBUG) # define PYBIND11_DEBUG_MARKER # undef _DEBUG # endif