We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92471ff commit 28c1c4bCopy full SHA for 28c1c4b
1 file changed
src/PythonQtPythonInclude.h
@@ -59,6 +59,12 @@
59
#include <Python.h>
60
#endif
61
62
+// By including Python.h on Linux truncate could have been defined (in unistd.h)
63
+// which would lead to compiler errors. Therefore:
64
+#ifdef truncate
65
+# undef truncate
66
+#endif
67
+
68
// get Qt keywords back
69
#ifdef PYTHONQT_RESTORE_KEYWORDS
70
#define slots Q_SLOTS
0 commit comments