forked from enlightenment/efl
OSX: fix version detection in build
This commit is contained in:
parent
d5bca5b0cb
commit
bf8a0eead2
|
@ -33,7 +33,7 @@ extern int _ecore_cocoa_log_domain;
|
||||||
* more meaningful ones. We define aliases to these new types to use the
|
* more meaningful ones. We define aliases to these new types to use the
|
||||||
* most recent API while being retro-compatible.
|
* most recent API while being retro-compatible.
|
||||||
*/
|
*/
|
||||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1012 /* Before 10.12 */
|
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101200 /* Before 10.12 */
|
||||||
# define NSWindowStyleMaskTitled NSTitledWindowMask
|
# define NSWindowStyleMaskTitled NSTitledWindowMask
|
||||||
# define NSWindowStyleMaskClosable NSClosableWindowMask
|
# define NSWindowStyleMaskClosable NSClosableWindowMask
|
||||||
# define NSWindowStyleMaskResizable NSResizableWindowMask
|
# define NSWindowStyleMaskResizable NSResizableWindowMask
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
* stdbool.h, which is not wanted: it would introduce new macros,
|
* stdbool.h, which is not wanted: it would introduce new macros,
|
||||||
* and break compilation of existing programs.
|
* and break compilation of existing programs.
|
||||||
*/
|
*/
|
||||||
# if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1012
|
# if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200
|
||||||
# include <os/lock.h>
|
# include <os/lock.h>
|
||||||
# define SPINLOCK_GET(LCK) ((os_unfair_lock_t)(LCK))
|
# define SPINLOCK_GET(LCK) ((os_unfair_lock_t)(LCK))
|
||||||
# else
|
# else
|
||||||
|
|
Loading…
Reference in New Issue