From f970bedaf0b6a22b717c8c8036612f1a642e5aa4 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Tue, 14 Jun 2016 19:01:32 -0400 Subject: [PATCH 5/7] =?UTF-8?q?Don=E2=80=99t=20define=20unneeded=20functio?= =?UTF-8?q?n=20on=20Cygwin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * src/w32fns.c (check_w32_winkey_state): Define and use only if WINDOWSNT. --- src/w32fns.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/w32fns.c b/src/w32fns.c index 86ebc8f..f0ae241 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -2406,6 +2406,7 @@ hook_w32_key (int hook, int modifier, int vkey) } } +#ifdef WINDOWSNT /* Check the current Win key pressed state. */ int check_w32_winkey_state (int vkey) @@ -2433,6 +2434,7 @@ check_w32_winkey_state (int vkey) } return 0; } +#endif /* WINDOWSNT */ /* Reset the keyboard hook state. Locking the workstation with Win-L leaves the Win key(s) "down" from the hook's point of view - the @@ -2623,8 +2625,10 @@ modifier_set (int vkey) else return (GetKeyState (vkey) & 0x1); } +#ifdef WINDOWSNT if (w32_kbdhook_active && (vkey == VK_LWIN || vkey == VK_RWIN)) return check_w32_winkey_state (vkey); +#endif if (!modifiers_recorded) return (GetKeyState (vkey) & 0x8000); -- 2.8.3