OSX: fix version detection in build

This commit is contained in:
Andy Williams 2017-07-17 13:04:30 +01:00
parent d5bca5b0cb
commit bf8a0eead2
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ extern int _ecore_cocoa_log_domain;
* more meaningful ones. We define aliases to these new types to use the
* 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 NSWindowStyleMaskClosable NSClosableWindowMask
# define NSWindowStyleMaskResizable NSResizableWindowMask

View File

@ -17,7 +17,7 @@
* stdbool.h, which is not wanted: it would introduce new macros,
* 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>
# define SPINLOCK_GET(LCK) ((os_unfair_lock_t)(LCK))
# else