From d1712d7c5ad3388201d0068b0be703a4bbcb9207 Mon Sep 17 00:00:00 2001 From: Stuart Carnie Date: Wed, 4 Jul 2018 15:26:49 -0700 Subject: [PATCH] fix(macOS): Fix older targets --- ui/drivers/cocoa/ui_cocoa_application.m | 2 +- ui/drivers/cocoa/ui_cocoa_msg_window.m | 2 +- ui/drivers/ui_cocoa.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/drivers/cocoa/ui_cocoa_application.m b/ui/drivers/cocoa/ui_cocoa_application.m index 54ecf46ef1..afb6740d43 100644 --- a/ui/drivers/cocoa/ui_cocoa_application.m +++ b/ui/drivers/cocoa/ui_cocoa_application.m @@ -23,7 +23,7 @@ #include "cocoa_common.h" #include "../../ui_companion_driver.h" -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12 +#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200 #define NSEventMaskAny NSAnyEventMask #endif diff --git a/ui/drivers/cocoa/ui_cocoa_msg_window.m b/ui/drivers/cocoa/ui_cocoa_msg_window.m index d85bc8e99e..faf6739b99 100644 --- a/ui/drivers/cocoa/ui_cocoa_msg_window.m +++ b/ui/drivers/cocoa/ui_cocoa_msg_window.m @@ -25,7 +25,7 @@ #include "../../ui_companion_driver.h" -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12 +#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200 #define NSAlertStyleCritical NSCriticalAlertStyle #define NSAlertStyleWarning NSWarningAlertStyle #define NSAlertStyleInformational NSInformationalAlertStyle diff --git a/ui/drivers/ui_cocoa.m b/ui/drivers/ui_cocoa.m index c318af6e0a..6f607c041b 100644 --- a/ui/drivers/ui_cocoa.m +++ b/ui/drivers/ui_cocoa.m @@ -71,7 +71,7 @@ static void app_terminate(void) @implementation RApplication -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12 +#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200 #define NSEventTypeKeyDown NSKeyDown #define NSEventTypeKeyUp NSKeyUp #define NSEventTypeFlagsChanged NSFlagsChanged