Skip to content

Commit 95045b9

Browse files
committed
Revert "Change compiler checks"
This reverts commit 310e8ea.
1 parent 700f199 commit 95045b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private enum HTTPTypeConversionError: Error {
4545

4646
#endif
4747

48-
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || compiler(>=6)
48+
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || compiler(>=6) || (compiler(>=6) && os(visionOS))
4949

5050
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *)
5151
extension URLSession {
@@ -129,7 +129,7 @@ extension URLSession {
129129
return (location, response)
130130
}
131131

132-
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || compiler(>=6)
132+
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || (compiler(>=6) && os(visionOS))
133133
/// Returns a byte stream that conforms to AsyncSequence protocol.
134134
///
135135
/// - Parameter request: The `HTTPRequest` for which to load data.

0 commit comments

Comments
 (0)