From aaa2dabf5dfe46b962825bb17eb5a3ffe3aa9dbc Mon Sep 17 00:00:00 2001 From: frederick-vs-ja Date: Wed, 4 Aug 2021 01:48:06 +0800 Subject: [PATCH] Remove usage of __w64 for recent MSVC versions __w64 just increases warnings and errors since VS 2013 (according to https://docs.microsoft.com/en-us/cpp/cpp/w64?view=msvc-160), so don't use it any longer. Closes https://github.com/wxWidgets/wxWidgets/pull/2455 --- include/wx/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/types.h b/include/wx/types.h index 0e45d37ff1..8ac189b109 100644 --- a/include/wx/types.h +++ b/include/wx/types.h @@ -347,7 +347,7 @@ typedef wxUint32 wxDword; each time we cast it to a pointer or a handle (which results in hundreds of warnings as Win32 API often passes pointers in them) */ -#ifdef __VISUALC__ +#if defined(__VISUALC__) && (_MSC_VER < 1800) #define wxW64 __w64 #else #define wxW64