We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30ca585 commit 6f75669Copy full SHA for 6f75669
1 file changed
src/PythonQtPythonInclude.h
@@ -33,6 +33,15 @@
33
#ifndef __PythonQtPythonInclude_h
34
#define __PythonQtPythonInclude_h
35
36
+// Undefine macros that features.h defines to avoid redefinition warning
37
+#ifdef _POSIX_C_SOURCE
38
+# undef _POSIX_C_SOURCE
39
+#endif
40
+
41
+#ifdef _XOPEN_SOURCE
42
+# undef _XOPEN_SOURCE
43
44
45
// Undefine Qt keywords that conflict with Python headers
46
#ifdef slots
47
#undef slots
0 commit comments