From d29a16620487f096af8c3b4426fafacda777addc Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 6 Mar 2017 05:23:38 -0800 Subject: [PATCH] SCR: Mac: continue replacing deprecated Mac APIs --- clientscr/Mac_Saver_ModuleView.m | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/clientscr/Mac_Saver_ModuleView.m b/clientscr/Mac_Saver_ModuleView.m index 564c051259..d488a5f82e 100644 --- a/clientscr/Mac_Saver_ModuleView.m +++ b/clientscr/Mac_Saver_ModuleView.m @@ -41,6 +41,24 @@ typedef int NSInteger; typedef float CGFloat; #endif +// NSCompositeSourceOver is deprecated in OS 10.12 and is replaced by +// NSCompositingOperationSourceOver, which is not defined before OS 10.12 +#ifndef NSCompositingOperationSourceOver +#define NSCompositingOperationSourceOver NSCompositeSourceOver +#endif + +// NSCompositeCopy is deprecated in OS 10.12 and is replaced by +// NSCompositingOperationCopy, which is not defined before OS 10.12 +#ifndef NSCompositingOperationCopy +#define NSCompositingOperationCopy NSCompositeCopy +#endif + +// NSCriticalAlertStyle is deprecated in OS 10.12 and is replaced by +// NSAlertStyleCritical, which is not defined before OS 10.12 +#ifndef NSAlertStyleCritical +#define NSAlertStyleCritical NSCriticalAlertStyle +#endif + void print_to_log_file(const char *format, ...); void strip_cr(char *buf);