diff options
| author | joesis | 2018-11-02 19:00:48 -0700 |
|---|---|---|
| committer | GitHub | 2018-11-02 19:00:48 -0700 |
| commit | 19c034af4717bf1737fc722e1804f5eb57e3bec5 (patch) | |
| tree | 5d884ae0d591dea16b61cbbffeef5db6fe46a442 | |
| parent | e31397f8c6928d98a8a9a7e80087aebcf0090beb (diff) | |
| parent | ba607cc0be7a766afd10f4bc6d83c6e925e8b3a9 (diff) | |
| download | systray-19c034af4717bf1737fc722e1804f5eb57e3bec5.tar.bz2 | |
Merge pull request #73 from swznd/patch-1
Support macOS older than 10.13
| -rw-r--r-- | systray_darwin.m | 8 |
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 |
