Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import new Android overlay #1550

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(Android)
import Android
#endif

#if canImport(Glibc) || canImport(Musl)
#if canImport(Glibc) || canImport(Musl) || canImport(Android)
// This is a lazily initialised global variable that when read for the first time, will ignore SIGPIPE.
private let globallyIgnoredSIGPIPE: Bool = {
/* no F_SETNOSIGPIPE on Linux :( */
Expand Down
2 changes: 2 additions & 0 deletions Sources/SourceKitD/SKDRequestArray.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import Glibc
import Musl
#elseif canImport(CRT)
import CRT
#elseif canImport(Android)
import Android
#endif

extension SourceKitD {
Expand Down
2 changes: 2 additions & 0 deletions Sources/SourceKitD/SKDRequestDictionary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import Glibc
import Musl
#elseif canImport(CRT)
import CRT
#elseif canImport(Android)
import Android
#endif

/// Values that can be stored in a `SKDRequestDictionary`.
Expand Down
2 changes: 2 additions & 0 deletions Sources/SourceKitD/SKDResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import Glibc
import Musl
#elseif canImport(CRT)
import CRT
#elseif canImport(Android)
import Android
#endif

public final class SKDResponse: Sendable {
Expand Down
2 changes: 2 additions & 0 deletions Sources/SourceKitD/SKDResponseArray.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import Glibc
import Musl
#elseif canImport(CRT)
import CRT
#elseif canImport(Android)
import Android
#endif

public final class SKDResponseArray: Sendable {
Expand Down
2 changes: 2 additions & 0 deletions Sources/SourceKitD/SKDResponseDictionary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import Glibc
import Musl
#elseif canImport(CRT)
import CRT
#elseif canImport(Android)
import Android
#endif

public final class SKDResponseDictionary: Sendable {
Expand Down
2 changes: 2 additions & 0 deletions Sources/SourceKitD/dlopen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import Darwin
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(Android)
import Android
#endif

public final class DLHandle: Sendable {
Expand Down