summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_private.h5
-rw-r--r--src/lib/eina/eina_lock.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_private.h b/src/lib/ecore_cocoa/ecore_cocoa_private.h
index a97d278e88..d2c67ac40d 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_private.h
+++ b/src/lib/ecore_cocoa/ecore_cocoa_private.h
@@ -30,9 +30,10 @@ extern int _ecore_cocoa_log_domain;
30 30
31/* 31/*
32 * macOS Sierra (10.12) deprecated enumeration types in profit to others, 32 * macOS Sierra (10.12) deprecated enumeration types in profit to others,
33 * more meaningful ones. 33 * more meaningful ones. We define aliases to these new types to use the
34 * most recent API while being retro-compatible.
34 */ 35 */
35#ifndef __MAC_10_12 36#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1012 /* Before 10.12 */
36# define NSWindowStyleMaskTitled NSTitledWindowMask 37# define NSWindowStyleMaskTitled NSTitledWindowMask
37# define NSWindowStyleMaskClosable NSClosableWindowMask 38# define NSWindowStyleMaskClosable NSClosableWindowMask
38# define NSWindowStyleMaskResizable NSResizableWindowMask 39# define NSWindowStyleMaskResizable NSResizableWindowMask
diff --git a/src/lib/eina/eina_lock.c b/src/lib/eina/eina_lock.c
index 5cb834ea00..e8872a65a1 100644
--- a/src/lib/eina/eina_lock.c
+++ b/src/lib/eina/eina_lock.c
@@ -17,7 +17,7 @@
17 * stdbool.h, which is not wanted: it would introduce new macros, 17 * stdbool.h, which is not wanted: it would introduce new macros,
18 * and break compilation of existing programs. 18 * and break compilation of existing programs.
19 */ 19 */
20# ifdef __MAC_10_12 20# if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1012
21# include <os/lock.h> 21# include <os/lock.h>
22# define SPINLOCK_GET(LCK) ((os_unfair_lock_t)(LCK)) 22# define SPINLOCK_GET(LCK) ((os_unfair_lock_t)(LCK))
23# else 23# else