diff --git a/Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift b/Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift index cdf2de6..8bcc343 100644 --- a/Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift +++ b/Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift @@ -45,7 +45,7 @@ private enum HTTPTypeConversionError: Error { #endif -#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || compiler(>=6) || (compiler(>=6) && os(visionOS)) +#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || compiler(>=6) @available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) extension URLSession { @@ -129,7 +129,7 @@ extension URLSession { return (location, response) } - #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || (compiler(>=6) && os(visionOS)) + #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || compiler(>=6) /// Returns a byte stream that conforms to AsyncSequence protocol. /// /// - Parameter request: The `HTTPRequest` for which to load data.