From 2b0a0ef0e6140a6c6a4c89813c98e3821df58f2b Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 24 May 2017 15:16:32 +0200 Subject: [PATCH] Compatibility with macOS 10.12 SDK They finally added kVK_RightCommand, so our workaround needs to be conditional. --- vncviewer/cocoa.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vncviewer/cocoa.mm b/vncviewer/cocoa.mm index 85b736ba..6e464fa4 100644 --- a/vncviewer/cocoa.mm +++ b/vncviewer/cocoa.mm @@ -37,8 +37,11 @@ #define NoSymbol 0 -// These are undocumented for unknown reasons +// This wasn't added until 10.12 +#if !defined(MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12 const int kVK_RightCommand = 0x36; +#endif +// And this is still missing const int kVK_Menu = 0x6E; static bool captured = false; -- 2.39.5