File 0001-Stop-unsetting-_DEBUG-when-including-Python.h.patch of Package kvirc

From 79dbba4260113b453fcea155881ecb4c6f82963b Mon Sep 17 00:00:00 2001
From: Alexey Sokolov <sokolov@google.com>
Date: Mon, 30 Dec 2019 07:32:51 +0000
Subject: [PATCH] Stop unsetting _DEBUG when including Python.h

Because of https://stackoverflow.com/questions/59126760/building-a-python-c-extension-on-windows-with-a-debug-python-installation
---
 src/modules/pythoncore/pythonheaderwrapper.h | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/src/modules/pythoncore/pythonheaderwrapper.h b/src/modules/pythoncore/pythonheaderwrapper.h
index 2b34066c3..173e3c289 100644
--- a/src/modules/pythoncore/pythonheaderwrapper.h
+++ b/src/modules/pythoncore/pythonheaderwrapper.h
@@ -7,14 +7,6 @@
 // use QT_NO_KEYWORDS.
 #undef slots
 
-// See http://stackoverflow.com/questions/16200997/why-doesnt-include-python-h-work and http://stackoverflow.com/questions/19716859/puzzling-dependency-of-boost-python-1-54-debug-build-to-python27-lib-on-window
-
-#if defined(_DEBUG) && defined(_MSC_VER)
-# undef _DEBUG
-# include <Python.h>
-# define _DEBUG 1
-#else
-# include <Python.h>
-#endif
+#include <Python.h>
 
 #endif
-- 
2.25.0

openSUSE Build Service is sponsored by