Skip to content

Commit

Permalink
fixed linux compilation problem
Browse files Browse the repository at this point in the history
  • Loading branch information
florianlink committed Sep 17, 2018
1 parent 92471ff commit 28c1c4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/PythonQtPythonInclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@
#include <Python.h>
#endif

// By including Python.h on Linux truncate could have been defined (in unistd.h)
// which would lead to compiler errors. Therefore:
#ifdef truncate
# undef truncate
#endif

// get Qt keywords back
#ifdef PYTHONQT_RESTORE_KEYWORDS
#define slots Q_SLOTS
Expand Down

0 comments on commit 28c1c4b

Please sign in to comment.