Skip to content

Commit 6f75669

Browse files
Add back undefining _POSIX_C_SOURCE and _XOPEN_SOURCE (#106)
- only undefining _POSIX_THREADS had be a problem - see #103
1 parent 30ca585 commit 6f75669

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/PythonQtPythonInclude.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@
3333
#ifndef __PythonQtPythonInclude_h
3434
#define __PythonQtPythonInclude_h
3535

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+
#endif
44+
3645
// Undefine Qt keywords that conflict with Python headers
3746
#ifdef slots
3847
#undef slots

0 commit comments

Comments
 (0)