Skip to content
Open
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
2 changes: 1 addition & 1 deletion stdlib/public/Concurrency/Deque/Compatibility.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extension Array {
// The bug is caused by a bogus precondition inside a non-inlinable stdlib
// method, so to determine if we're affected, we need to check the currently
// running OS version.
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
guard #available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *) else {
// The OS is too old to be affected by this bug.
return false
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/libexec/swift-backtrace/Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ internal func recursiveRemoveContents(_ dir: String) throws {
while let dp = readdir(dirp) {
let name: String =
withUnsafePointer(to: &dp.pointee.d_name) {
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
let len = Int(dp.pointee.d_namlen)
#else
let len = Int(strlen($0))
Expand Down
4 changes: 2 additions & 2 deletions stdlib/public/libexec/swift-backtrace/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ Generate a backtrace for the parent process.
backtraceFormatter.writeCrashLog(now: formatISO8601(now))
}

#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
// On Darwin, if Developer Mode is turned off, or we can't tell if it's
// on or not, disable interactivity
var developerMode: Int32 = 0
Expand Down Expand Up @@ -772,7 +772,7 @@ Generate a backtrace for the parent process.
}
}

#if os(Linux) || os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
#if os(Linux) || os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
static func setRawMode() -> termios {
var oldAttrs = termios()
tcgetattr(0, &oldAttrs)
Expand Down