We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af1633f commit 5a891f2Copy full SHA for 5a891f2
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
// Avoid clashes with libstdc++ <locale> by undefining ctype macros
132
// that CPython may introduce on macOS when the UTF-8 ctype quirk is enabled.
0 commit comments