]> source.dussan.org Git - tigervnc.git/commitdiff
Compatibility with macOS 10.12 SDK
authorPierre Ossman <ossman@cendio.se>
Wed, 24 May 2017 13:16:32 +0000 (15:16 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 24 May 2017 13:18:17 +0000 (15:18 +0200)
They finally added kVK_RightCommand, so our workaround needs to be
conditional.

vncviewer/cocoa.mm

index 85b736bad2ca522742a942fd94762956d84397be..6e464fa4902dad58abc6750da385eda916c4d4a0 100644 (file)
 
 #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;