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
/*
* 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
* 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