summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2015-10-23 07:43:41 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2015-10-23 07:43:41 (GMT)
commitf57b94fcdd20ab3ca14af675a17a24d0c742171d (patch)
tree28812454abc866430d1e5044c6ab6028dbd9c781
parent3e2e2deef0921b0ed1f069a5708529af330a9432 (diff)
downloadtk-f57b94fcdd20ab3ca14af675a17a24d0c742171d.zip
tk-f57b94fcdd20ab3ca14af675a17a24d0c742171d.tar.gz
tk-f57b94fcdd20ab3ca14af675a17a24d0c742171d.tar.bz2
Fix [916c1095438eae56]: Tk does not compile because GetVersionExW triggers warnings
-rw-r--r--win/tkWinPort.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/win/tkWinPort.h b/win/tkWinPort.h
index 8d7778c..b94628e 100644
--- a/win/tkWinPort.h
+++ b/win/tkWinPort.h
@@ -80,6 +80,13 @@
#define REDO_KEYSYM_LOOKUP
/*
+ * See ticket [916c1095438eae56]: GetVersionExW triggers warnings
+ */
+#if defined(_MSC_VER)
+# pragma warning(disable:4996)
+#endif
+
+/*
* The following macro checks to see whether there is buffered
* input data available for a stdio FILE.
*/