summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2015-10-23 07:43:41 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2015-10-23 07:43:41 (GMT)
commit38227dd1f464f577970c0ed14ca920616c93399a (patch)
tree28812454abc866430d1e5044c6ab6028dbd9c781 /win
parent37745f7a17c5aad768e6546e25e9921fd16d2df3 (diff)
downloadtk-38227dd1f464f577970c0ed14ca920616c93399a.zip
tk-38227dd1f464f577970c0ed14ca920616c93399a.tar.gz
tk-38227dd1f464f577970c0ed14ca920616c93399a.tar.bz2
Fix [916c1095438eae56]: Tk does not compile because GetVersionExW triggers warnings
FossilOrigin-Name: f51c25b10db19300b2ee14d74755baa9715b711b
Diffstat (limited to 'win')
-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.
*/