summaryrefslogtreecommitdiffstats
path: root/win/tkWinPort.h
diff options
context:
space:
mode:
Diffstat (limited to 'win/tkWinPort.h')
-rw-r--r--win/tkWinPort.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/win/tkWinPort.h b/win/tkWinPort.h
index 337a866..0118608 100644
--- a/win/tkWinPort.h
+++ b/win/tkWinPort.h
@@ -21,6 +21,7 @@
*---------------------------------------------------------------------------
*/
+#include <stdio.h>
#include <wchar.h>
#include <io.h>
#include <stdlib.h>
@@ -64,6 +65,9 @@
typedef _TCHAR TCHAR;
#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>