From f57b94fcdd20ab3ca14af675a17a24d0c742171d Mon Sep 17 00:00:00 2001 From: "nijtmans@users.sourceforge.net" 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