From 0a29fdd2c570df7af8d987be7517bf12ef1db610 Mon Sep 17 00:00:00 2001 From: Mike Schinkel Date: Tue, 25 Jun 2019 21:27:49 -0400 Subject: Attempt to fix https://github.com/getlantern/systray/issues/75 --- systray_darwin.m | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'systray_darwin.m') 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 #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 -- cgit v1.2.3