Skip to content

Commit d21f7c0

Browse files
authored
Merge pull request #1577 from ahoppen/import-free
Import `Darwin` in files that use `free`
2 parents 78ddeb7 + edf19db commit d21f7c0

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

Sources/SourceKitD/SKDRequestArray.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
import Csourcekitd
1414

15-
#if canImport(Glibc)
15+
#if canImport(Darwin)
16+
import Darwin
17+
#elseif canImport(Glibc)
1618
import Glibc
1719
#elseif canImport(Musl)
1820
import Musl

Sources/SourceKitD/SKDRequestDictionary.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
import Csourcekitd
1414
import LSPLogging
1515

16-
#if canImport(Glibc)
16+
#if canImport(Darwin)
17+
import Darwin
18+
#elseif canImport(Glibc)
1719
import Glibc
1820
#elseif canImport(Musl)
1921
import Musl

Sources/SourceKitD/SKDResponse.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
import Csourcekitd
1414
import LSPLogging
1515

16-
#if canImport(Glibc)
16+
#if canImport(Darwin)
17+
import Darwin
18+
#elseif canImport(Glibc)
1719
import Glibc
1820
#elseif canImport(Musl)
1921
import Musl

Sources/SourceKitD/SKDResponseArray.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
import Csourcekitd
1414

15-
#if canImport(Glibc)
15+
#if canImport(Darwin)
16+
import Darwin
17+
#elseif canImport(Glibc)
1618
import Glibc
1719
#elseif canImport(Musl)
1820
import Musl

Sources/SourceKitD/SKDResponseDictionary.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212

1313
import Csourcekitd
1414

15-
#if canImport(Glibc)
15+
#if canImport(Darwin)
16+
import Darwin
17+
#elseif canImport(Glibc)
1618
import Glibc
1719
#elseif canImport(Musl)
1820
import Musl

0 commit comments

Comments
 (0)