Skip to content

Commit

Permalink
Add @preconcurrency import Foundation for non-mac platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed May 25, 2023
1 parent 7e8e10d commit b185943
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/SotoCodeGeneratorLib/Templates/shapes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ extension Templates {
{{%CONTENT_TYPE:TEXT}}
{{>header}}
#if os(macOS)
import Foundation
#else
// swift-corelibs-foundation hasn't been updated with Sendable conformances
@preconcurrency import Foundation
#endif
import SotoCore
extension {{name}} {
Expand Down

0 comments on commit b185943

Please sign in to comment.