Skip to content

Commit 895a033

Browse files
Philipp HomannPhilipp Homann
authored andcommitted
avoid build errors for MacOS
1 parent b92c141 commit 895a033

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Sources/UsefulNetworkLayer/NetworkLayer/NetworkLayer+Cache.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ extension NetworkLayer {
3636
self.initialize()
3737
}
3838

39+
#if !os(macOS)
3940
/**
4041
Initialize cache with the specified capacity preferences and path.
4142
- parameter memoryCapacity: The RAM demand. Set `0` if you don't want to use temporary memory
@@ -46,6 +47,7 @@ extension NetworkLayer {
4647
super.init(memoryCapacity: memoryCapacity, diskCapacity: diskCapacity, diskPath: path)
4748
self.initialize()
4849
}
50+
#endif
4951

5052
/// Registers `NotificationCenter` for necessary messages.
5153
private func initialize() {

0 commit comments

Comments
 (0)