diff --git a/systray_darwin.m b/systray_darwin.m index 3d928685..ad8902b2 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