From e118c918ceb1faaa6bee669306180a0fd7704312 Mon Sep 17 00:00:00 2001 From: Catalin Date: Thu, 16 Mar 2017 21:38:01 +0200 Subject: [PATCH] Redefine MAPVK_VK_TO_CHAR, missing from XP 64-bit and tdm32-gcc-5.1.0 --- src/msw/window.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 61d86df378..da1cd7839b 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -125,6 +125,13 @@ #define HAVE_TRACKMOUSEEVENT #endif // everything needed for TrackMouseEvent() +#ifndef MAPVK_VK_TO_CHAR + // Contrary to MS claims that this is present starting with Win2k, it is + // missing from the SDK released for Windows 5.2 build 3790, aka XP 64-bit + // and also from tdm32-gcc-5.1.0. + #define MAPVK_VK_TO_CHAR 2 +#endif + // --------------------------------------------------------------------------- // global variables // ---------------------------------------------------------------------------