Skip to content

Commit

Permalink
Try to fix older visionOS builds (linker)
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=270763
<rdar://124349498>

Reviewed by Tim Horton.

`WKSPreviewWindowController.h` needs to be part of `WebKitSwift.h`
because of the delegate. So it can't be included only based on a
(compile-time) feature flag.
Introduce a stub `WKSPreviewWindowController` instead for older SDKs,
where the feature is turned off anyway.

* Source/WebKit/WebKitSwift/Preview/PreviewWindowController.swift:

Canonical link: https://commits.webkit.org/275893@main
  • Loading branch information
etiennesegonzac committed Mar 10, 2024
1 parent 61ae5fa commit e8e13ca
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public final class PreviewWindowController: NSObject {
}
}

#else
import Foundation
@objc(WKSPreviewWindowController)
public final class PreviewWindowController: NSObject { }
#endif

#endif

0 comments on commit e8e13ca

Please sign in to comment.