From 0d54ede8699d90997022d2286ef65953b7761628 Mon Sep 17 00:00:00 2001 From: Tomáš Znamenáček Date: Fri, 28 Oct 2016 14:52:37 +0200 Subject: Trying to fix conditional key mask definition on 10.12 --- Framework/MASKeyMasks.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Framework/MASKeyMasks.h') diff --git a/Framework/MASKeyMasks.h b/Framework/MASKeyMasks.h index 1c3a0b9..e541c32 100644 --- a/Framework/MASKeyMasks.h +++ b/Framework/MASKeyMasks.h @@ -1,3 +1,5 @@ +#import + // https://github.com/shpakovski/MASShortcut/issues/99 // // Long story short: NSControlKeyMask and friends were replaced with NSEventModifierFlagControl @@ -7,8 +9,8 @@ // since it breaks the build on older SDKs – in Travis, for example. // // It should be safe to remove this whole thing once the 10.12 SDK is ubiquitous. -// -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12 + +#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1012 #define NSEventModifierFlagCommand NSCommandKeyMask #define NSEventModifierFlagControl NSControlKeyMask #define NSEventModifierFlagOption NSAlternateKeyMask -- cgit v1.2.3