devdraw: fix build on macOS < 10.12
After making the build on macOS silent on commit 310ae03,
the build was broken on macOS lesser than 10.12 (Sierra).
This commit conditionally checks the version the of the
SDK before using the defined values for silent build.
Fixes #66.
This commit is contained in:
parent
c665ab76a8
commit
680c57a15c
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,7 @@
|
||||||
#include "glendapng.h"
|
#include "glendapng.h"
|
||||||
|
|
||||||
// Use non-deprecated names.
|
// Use non-deprecated names.
|
||||||
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101200
|
||||||
#define NSKeyDown NSEventTypeKeyDown
|
#define NSKeyDown NSEventTypeKeyDown
|
||||||
#define NSShiftKeyMask NSEventModifierFlagShift
|
#define NSShiftKeyMask NSEventModifierFlagShift
|
||||||
#define NSAlternateKeyMask NSEventModifierFlagOption
|
#define NSAlternateKeyMask NSEventModifierFlagOption
|
||||||
|
|
@ -52,6 +53,7 @@
|
||||||
#define NSClosableWindowMask NSWindowStyleMaskClosable
|
#define NSClosableWindowMask NSWindowStyleMaskClosable
|
||||||
#define NSMiniaturizableWindowMask NSWindowStyleMaskMiniaturizable
|
#define NSMiniaturizableWindowMask NSWindowStyleMaskMiniaturizable
|
||||||
#define NSBorderlessWindowMask NSWindowStyleMaskBorderless
|
#define NSBorderlessWindowMask NSWindowStyleMaskBorderless
|
||||||
|
#endif
|
||||||
|
|
||||||
AUTOFRAMEWORK(Cocoa)
|
AUTOFRAMEWORK(Cocoa)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue