Fixed building with the latest macOS SDK
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 7 Oct 2018 22:53:12 +0000 (22:53 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 7 Oct 2018 22:53:12 +0000 (22:53 +0000)
* Plugins/WebNetscapePluginPackage.mm:
(-[WebNetscapePluginPackage openResourceFile]):
(-[WebNetscapePluginPackage closeResourceFile:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236910 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKitLegacy/mac/ChangeLog
Source/WebKitLegacy/mac/Plugins/WebNetscapePluginPackage.mm

index ca2630c..457a973 100644 (file)
@@ -1,3 +1,11 @@
+2018-10-07  Dan Bernstein  <mitz@apple.com>
+
+        Fixed building with the latest macOS SDK
+
+        * Plugins/WebNetscapePluginPackage.mm:
+        (-[WebNetscapePluginPackage openResourceFile]):
+        (-[WebNetscapePluginPackage closeResourceFile:]):
+
 2018-10-04  Dan Bernstein  <mitz@apple.com>
 
         More Carbon build-fixing.
index 54d0adc..cf55892 100644 (file)
@@ -53,12 +53,16 @@ using namespace WebCore;
 
 - (ResFileRefNum)openResourceFile
 {
+ALLOW_DEPRECATED_DECLARATIONS_BEGIN
     return CFBundleOpenBundleResourceMap(cfBundle.get());
+ALLOW_DEPRECATED_DECLARATIONS_END
 }
 
 - (void)closeResourceFile:(ResFileRefNum)resRef
 {
+ALLOW_DEPRECATED_DECLARATIONS_BEGIN
     CFBundleCloseBundleResourceMap(cfBundle.get(), resRef);
+ALLOW_DEPRECATED_DECLARATIONS_END
 }
 
 - (BOOL)_initWithPath:(NSString *)pluginPath