aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/pythoncore
diff options
context:
space:
mode:
authorGravatar Alexey Sokolov2019-12-30 07:32:51 +0000
committerGravatar Alexey Sokolov2019-12-30 07:32:51 +0000
commit79dbba4260113b453fcea155881ecb4c6f82963b (patch)
tree45186e54cef0bdfe96bd953af3eeaf5ddfb6d926 /src/modules/pythoncore
parentAppveyor: Maybe reinstall of cygwin will fix cygwin issue? (diff)
downloadKVIrc-79dbba4260113b453fcea155881ecb4c6f82963b.tar.gz
KVIrc-79dbba4260113b453fcea155881ecb4c6f82963b.tar.bz2
KVIrc-79dbba4260113b453fcea155881ecb4c6f82963b.zip
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
Diffstat (limited to 'src/modules/pythoncore')
-rw-r--r--src/modules/pythoncore/pythonheaderwrapper.h10
1 files changed, 1 insertions, 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