Skip to content

Commit 6dea310

Browse files
mrbean-bremenjcfr
authored andcommitted
[Backport] Revert undefining some defines (#103)
- this has been introduced in commontk#89 and breaks builds including "pythread.h" - fixes #103 (cherry picked from commit MeVisLab/pythonqt@30ca585)
1 parent 0fd377e commit 6dea310

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/PythonQtPythonInclude.h

-13
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,6 @@
3333
#ifndef __PythonQtPythonInclude_h
3434
#define __PythonQtPythonInclude_h
3535

36-
// Undefine macros that Python.h defines to avoid redefinition warning.
37-
#ifdef _POSIX_C_SOURCE
38-
# undef _POSIX_C_SOURCE
39-
#endif
40-
41-
#ifdef _POSIX_THREADS
42-
# undef _POSIX_THREADS
43-
#endif
44-
45-
#ifdef _XOPEN_SOURCE
46-
# undef _XOPEN_SOURCE
47-
#endif
48-
4936
// Undefine Qt keywords that conflict with Python headers
5037
#ifdef slots
5138
#undef slots

0 commit comments

Comments
 (0)