diff options
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/devdraw/cocoa-screen.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/devdraw/cocoa-screen.m b/src/cmd/devdraw/cocoa-screen.m index 6a3f70f0..e7296e44 100644 --- a/src/cmd/devdraw/cocoa-screen.m +++ b/src/cmd/devdraw/cocoa-screen.m @@ -29,6 +29,7 @@ #include "glendapng.h" // Use non-deprecated names. +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 #define NSKeyDown NSEventTypeKeyDown #define NSShiftKeyMask NSEventModifierFlagShift #define NSAlternateKeyMask NSEventModifierFlagOption @@ -52,6 +53,7 @@ #define NSClosableWindowMask NSWindowStyleMaskClosable #define NSMiniaturizableWindowMask NSWindowStyleMaskMiniaturizable #define NSBorderlessWindowMask NSWindowStyleMaskBorderless +#endif AUTOFRAMEWORK(Cocoa) |