forked from enlightenment/efl
eina,ecore_cocoa: fix detection of the macOS SDK version
There was trouble with Homebrew's CI to build EFL on a macOS < 10.12 which uses a 10.12 SDK. See PR #13252 on github, Homebrew/homebrew-core for details. @fix
This commit is contained in:
parent
977189de8b
commit
077791b7cc
|
@ -30,9 +30,10 @@ extern int _ecore_cocoa_log_domain;
|
|||
|
||||
/*
|
||||
* macOS Sierra (10.12) deprecated enumeration types in profit to others,
|
||||
* more meaningful ones.
|
||||
* more meaningful ones. We define aliases to these new types to use the
|
||||
* most recent API while being retro-compatible.
|
||||
*/
|
||||
#ifndef __MAC_10_12
|
||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1012 /* Before 10.12 */
|
||||
# define NSWindowStyleMaskTitled NSTitledWindowMask
|
||||
# define NSWindowStyleMaskClosable NSClosableWindowMask
|
||||
# define NSWindowStyleMaskResizable NSResizableWindowMask
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* stdbool.h, which is not wanted: it would introduce new macros,
|
||||
* and break compilation of existing programs.
|
||||
*/
|
||||
# ifdef __MAC_10_12
|
||||
# if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1012
|
||||
# include <os/lock.h>
|
||||
# define SPINLOCK_GET(LCK) ((os_unfair_lock_t)(LCK))
|
||||
# else
|
||||
|
|
Loading…
Reference in New Issue