aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuhammad Fikri2018-11-02 19:50:28 +0700
committerGitHub2018-11-02 19:50:28 +0700
commitba607cc0be7a766afd10f4bc6d83c6e925e8b3a9 (patch)
tree5d884ae0d591dea16b61cbbffeef5db6fe46a442
parente31397f8c6928d98a8a9a7e80087aebcf0090beb (diff)
downloadsystray-ba607cc0be7a766afd10f4bc6d83c6e925e8b3a9.tar.bz2
Support macOS older than 10.13
`NSControlStateValueOff` and `NSControlStateValueOn` available since 10.13
-rw-r--r--systray_darwin.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/systray_darwin.m b/systray_darwin.m
index e466948..3d92868 100644
--- a/systray_darwin.m
+++ b/systray_darwin.m
@@ -1,6 +1,14 @@
#import <Cocoa/Cocoa.h>
#include "systray.h"
+#ifndef NSControlStateValueOff
+ #define NSControlStateValueOff NSOffState
+#endif
+
+#ifndef NSControlStateValueOn
+ #define NSControlStateValueOn NSOnState
+#endif
+
@interface MenuItem : NSObject
{
@public