Skip to content

Commit

Permalink
Fix imports for Xcode 16b6
Browse files Browse the repository at this point in the history
Just import whole Foundation,
and import Darwin when required for strcasecmp.
  • Loading branch information
helje5 committed Aug 22, 2024
1 parent 0cb5795 commit 3ef2f36
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions Plugins/Libraries/LighterGeneration/SchemaLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import SQLite3Schema
#if !(os(macOS) || os(iOS) || os(watchOS) || os(tvOS)) && swift(>=5.9)
@preconcurrency import Foundation
#else
import class Foundation.FileManager
import struct Foundation.URL
import Foundation
#endif

/**
Expand Down
10 changes: 1 addition & 9 deletions Sources/Lighter/Schema/SQLiteValueType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@ import SQLite3
extension URL : @unchecked Sendable {}
#endif
#else
import struct Foundation.URL
import struct Foundation.Date
import struct Foundation.TimeInterval
import class Foundation.DateFormatter
import struct Foundation.Data
import struct Foundation.Decimal
import func Foundation.NSDecimalString
import struct Foundation.Locale
import struct Foundation.UUID
import Foundation
#endif // Darwin
#endif

Expand Down
3 changes: 3 additions & 0 deletions Sources/SQLite3Schema/CatalogObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// Created by Helge Heß.
// Copyright © 2022-2024 ZeeZide GmbH.
//
#if (os(macOS) || os(iOS) || os(tvOS) || os(watchOS)) && swift(>=5.6)
import Darwin
#endif

public extension Schema {

Expand Down

0 comments on commit 3ef2f36

Please sign in to comment.