From: Ken Thomases Subject: winemac: Don't define kVK_RightCommand when building against the macOS 10.12 SDK. Message-Id: <1466718784-14230-1-git-send-email-ken@codeweavers.com> Date: Thu, 23 Jun 2016 16:53:04 -0500 Apple added the same enum declaration to their headers, causing a build failure. Signed-off-by: Ken Thomases --- For . 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 d3b3c89..4f59121 100644 --- a/dlls/winemac.drv/cocoa_window.m +++ b/dlls/winemac.drv/cocoa_window.m @@ -43,10 +43,12 @@ - (void) toggleFullScreen:(id)sender; #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 . */ enum { kVK_RightCommand = 0x36, /* Invented for Wine; was unused */ }; +#endif static NSUInteger style_mask_for_features(const struct macdrv_window_features* wf) -- 2.8.2