Skip to content

Commit

Permalink
Merge pull request #1578 from ahoppen/6.0/import-free
Browse files Browse the repository at this point in the history
[6.0] Import `Darwin` in files that use `free`
  • Loading branch information
ahoppen authored Jul 18, 2024
2 parents 3f8d7fe + a044f68 commit 7baf991
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Sources/SourceKitD/SKDRequestArray.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

import Csourcekitd

#if canImport(Glibc)
#if canImport(Darwin)
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
Expand Down
4 changes: 3 additions & 1 deletion Sources/SourceKitD/SKDRequestDictionary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
import Csourcekitd
import LSPLogging

#if canImport(Glibc)
#if canImport(Darwin)
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
Expand Down
4 changes: 3 additions & 1 deletion Sources/SourceKitD/SKDResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
import Csourcekitd
import LSPLogging

#if canImport(Glibc)
#if canImport(Darwin)
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
Expand Down
4 changes: 3 additions & 1 deletion Sources/SourceKitD/SKDResponseArray.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

import Csourcekitd

#if canImport(Glibc)
#if canImport(Darwin)
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
Expand Down
4 changes: 3 additions & 1 deletion Sources/SourceKitD/SKDResponseDictionary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

import Csourcekitd

#if canImport(Glibc)
#if canImport(Darwin)
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
Expand Down

0 comments on commit 7baf991

Please sign in to comment.