summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean@guyomarch.bzh>2017-06-27 23:09:09 +0200
committerJean Guyomarc'h <jean@guyomarch.bzh>2017-06-27 23:14:31 +0200
commit077791b7cc457d371f0d0b7a69d25238f5c6c352 (patch)
tree852864b92a977c1fe9cee2183875869c7fbe1d60 /src/lib/ecore_cocoa
parent977189de8b53dc4ceee267b479ecfcb2936d1518 (diff)
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
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_private.h5
1 files changed, 3 insertions, 2 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