We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a008afe commit fcb1cafCopy full SHA for fcb1caf
1 file changed
src/PythonQtPythonInclude.h
@@ -121,9 +121,12 @@
121
#error "PythonQt requires Python >= 3.x"
122
#endif
123
124
+// Optional compatibility shim for legacy wrappers generated by older PythonQt.
125
+// Enable by defining PYTHONQT_USE_PYSTRING_SHIM (deprecated).
126
+#if defined(PYTHONQT_USE_PYSTRING_SHIM)
127
#define PY3K
-// Helper defines to facilitate porting
128
#define PyString_FromString PyUnicode_FromString
129
+#endif
130
131
#define PyInt_Type PyLong_Type
132
#define PyInt_FromLong PyLong_FromLong
0 commit comments