Ken Thomases : winemac: Don' t define kVK_RightCommand when building against the macOS 10.12 SDK.

Alexandre Julliard julliard at winehq.org
Mon Aug 22 07:32:39 CDT 2016


Module: wine
Branch: stable
Commit: d78ed2219bfe7cbc93a9cae35d05df4cbc4932fb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d78ed2219bfe7cbc93a9cae35d05df4cbc4932fb

Author: Ken Thomases <ken at codeweavers.com>
Date:   Thu Jun 23 16:53:04 2016 -0500

winemac: Don't define kVK_RightCommand when building against the macOS 10.12 SDK.

Apple added the same enum declaration to their headers, causing a build failure.

Signed-off-by: Ken Thomases <ken at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit cac226200d88b7454747b5ee1016f06b89ce4aa6)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 dlls/winemac.drv/cocoa_window.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/winemac.drv/cocoa_window.m b/dlls/winemac.drv/cocoa_window.m
index bcc1cf5..a28d530 100644
--- a/dlls/winemac.drv/cocoa_window.m
+++ b/dlls/winemac.drv/cocoa_window.m
@@ -43,10 +43,12 @@ enum {
 #endif
 
 
+#if !defined(MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
 /* Additional Mac virtual keycode, to complement those in Carbon's <HIToolbox/Events.h>. */
 enum {
     kVK_RightCommand              = 0x36, /* Invented for Wine; was unused */
 };
+#endif
 
 
 static NSUInteger style_mask_for_features(const struct macdrv_window_features* wf)




More information about the wine-cvs mailing list