From 6aae6c7c27d9bc93bd2b4214f87f73c2ac500976 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Fri, 23 Oct 2015 07:43:41 +0000 Subject: Fix [916c1095438eae56]: Tk does not compile because GetVersionExW triggers warnings --- win/tkWinPort.h | 7 +++++++ 1 file changed, 7 insertions(+) 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. */ -- cgit v0.12