From e4d110b8b2f6c1b693a3f44b965ba5e235f9a12e Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Tue, 16 Jan 2018 22:44:02 +0100 Subject: [PATCH] replacement methods for 10.4 SDK --- webapprt/mac/webapprt.mm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webapprt/mac/webapprt.mm b/webapprt/mac/webapprt.mm index 479bb67a0..59b0e12a4 100644 --- a/webapprt/mac/webapprt.mm +++ b/webapprt/mac/webapprt.mm @@ -188,13 +188,22 @@ main(int argc, char **argv) } } +#if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4) + [fileClerk removeFileAtPath: myWebRTPath handler:nil]; +#else [fileClerk removeItemAtPath: myWebRTPath error: &errorDesc]; +#endif if (errorDesc != nil) { NSLog(@"failed to unlink old binary file at path: %@ with error: %@", myWebRTPath, errorDesc); @throw MakeException(@"Unable To Update", @"Failed preparation for Web Runtime update"); } +#if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4) + [fileClerk copyPath: newWebRTPath toPath: myWebRTPath handler:nil]; +#else [fileClerk copyItemAtPath: newWebRTPath toPath: myWebRTPath error: &errorDesc]; +#endif + [fileClerk release]; if (errorDesc != nil) { NSLog(@"failed to copy new webrt file: %@", errorDesc);