Skip to content

Commit d2897a0

Browse files
committed
Fix Linux build by importing OpenCoreGraphicsShims for CG types
1 parent 11ee0d0 commit d2897a0

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

Sources/OpenRenderBox/Render/ORBDisplayList.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
#if !canImport(ObjectiveC)
99
public import Foundation
10+
#if !OPENRENDERBOX_CF_CGTYPES
11+
public import OpenCoreGraphicsShims
12+
#endif
1013

1114
public final class ORBDisplayList: NSObject, ORBDisplayListContents {
1215
// MARK: - Properties

Sources/OpenRenderBox/Render/ORBDisplayListContents.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
#if !canImport(ObjectiveC)
77
public import Foundation
8+
#if !OPENRENDERBOX_CF_CGTYPES
9+
public import OpenCoreGraphicsShims
10+
#endif
811

912
public protocol ORBDisplayListContents: AnyObject {
1013
var empty: Bool { get }

Sources/OpenRenderBox/Render/ORBDisplayListInterpolator.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
#if !canImport(ObjectiveC)
77
public import Foundation
8+
#if !OPENRENDERBOX_CF_CGTYPES
9+
public import OpenCoreGraphicsShims
10+
#endif
811

912
public class ORBDisplayListInterpolator: NSObject {
1013
// MARK: - Properties

0 commit comments

Comments
 (0)