forked from qt-creator/qt-creator
CdbExt: Fix Python-C API handling
From 3.10 onwards we need an additional macro when parsing and building values. Change-Id: Ia0bcdde467d87a1c7d22ec8657e050cdf5f1e52e Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -90,7 +90,7 @@ if (_library_enabled)
|
||||
extend_qtc_library(qtcreatorcdbext
|
||||
DEPENDS "${Python3_LIBRARIES}"
|
||||
INCLUDES "${Python3_INCLUDE_DIRS}"
|
||||
DEFINES WITH_PYTHON=1
|
||||
DEFINES WITH_PYTHON=1 PY_SSIZE_T_CLEAN
|
||||
SOURCES
|
||||
pycdbextmodule.cpp pycdbextmodule.h
|
||||
pyfield.cpp pyfield.h
|
||||
|
@@ -87,7 +87,7 @@ QtcLibrary {
|
||||
|
||||
Properties {
|
||||
condition: pythonDllProbe.found
|
||||
cpp.defines: ["WITH_PYTHON=1"]
|
||||
cpp.defines: ["WITH_PYTHON=1", "PY_SSIZE_T_CLEAN"]
|
||||
}
|
||||
cpp.includePaths: {
|
||||
if (pythonDllProbe.found)
|
||||
|
Reference in New Issue
Block a user