Merge pull request #92 from gearboxworks/osx-mojave-fix

Attempt to fix https://github.com/getlantern/systray/issues/75
This commit is contained in:
joesis
2019-06-25 23:45:21 -07:00
committed by GitHub
+9 -5
View File
@@ -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