aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/MASKeyMasks.h
diff options
context:
space:
mode:
authorTomáš Znamenáček2016-10-28 14:52:37 +0200
committerTomáš Znamenáček2016-10-28 14:52:37 +0200
commit0d54ede8699d90997022d2286ef65953b7761628 (patch)
treeb4cf9cab11c42ecc29d86d498b7f045a7a4cdc00 /Framework/MASKeyMasks.h
parentf12ed861b095d0734173948594202e25ee7e926d (diff)
downloadMASShortcut-0d54ede8699d90997022d2286ef65953b7761628.tar.bz2
Trying to fix conditional key mask definition on 10.12
Diffstat (limited to 'Framework/MASKeyMasks.h')
-rw-r--r--Framework/MASKeyMasks.h6
1 files changed, 4 insertions, 2 deletions
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 <Availability.h>
+
// 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