aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoesis2019-06-25 23:45:21 -0700
committerGitHub2019-06-25 23:45:21 -0700
commitf2fa635d0474eae70a9d869b7d90423e85c5baef (patch)
treeb8f6f031ab934289cc10181b28af5212523c7276
parent3d7db9f66352b8bbe4901f61526b9015ce50aaa0 (diff)
parent0a29fdd2c570df7af8d987be7517bf12ef1db610 (diff)
downloadsystray-f2fa635d0474eae70a9d869b7d90423e85c5baef.tar.bz2
Merge pull request #92 from gearboxworks/osx-mojave-fixHEADmaster
Attempt to fix https://github.com/getlantern/systray/issues/75
-rw-r--r--systray_darwin.m14
1 files changed, 9 insertions, 5 deletions
diff --git a/systray_darwin.m b/systray_darwin.m
index 3d92868..ad8902b 100644
--- a/systray_darwin.m
+++ b/systray_darwin.m
@@ -1,12 +1,16 @@
#import <Cocoa/Cocoa.h>
#include "systray.h"
-#ifndef NSControlStateValueOff
- #define NSControlStateValueOff NSOffState
-#endif
+#if __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_14
+
+ #ifndef NSControlStateValueOff
+ #define NSControlStateValueOff NSOffState
+ #endif
+
+ #ifndef NSControlStateValueOn
+ #define NSControlStateValueOn NSOnState
+ #endif
-#ifndef NSControlStateValueOn
- #define NSControlStateValueOn NSOnState
#endif
@interface MenuItem : NSObject