summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-07-02 14:43:04 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-07-02 14:43:04 (GMT)
commitafebc679a1637210fafc9315203027237bab8d0d (patch)
treeac171dac5a14e95f00d75d911ac8dcc2e594cf2b /unix
parent472a20da74ae386ba8360843638d81fceb84ed5a (diff)
downloadtk-afebc679a1637210fafc9315203027237bab8d0d.zip
tk-afebc679a1637210fafc9315203027237bab8d0d.tar.gz
tk-afebc679a1637210fafc9315203027237bab8d0d.tar.bz2
Fix [dba9f5ce3b]: tkInt.h: define MODULE_SCOPE before including tkPort.h
Since X11/Xlib.h doesn't compile with -Wc++-compat, don't even try.
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixPort.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/tkUnixPort.h b/unix/tkUnixPort.h
index c8d842d..44926a4 100644
--- a/unix/tkUnixPort.h
+++ b/unix/tkUnixPort.h
@@ -58,6 +58,9 @@
#else
# include "../compat/unistd.h"
#endif
+#if defined(__GNUC__) && !defined(__cplusplus)
+# pragma GCC diagnostic ignored "-Wc++-compat"
+#endif
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>