From 310e8eaf924f4e9852c95eec9c5d383ab8fc5ad1 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Thu, 24 Oct 2024 12:52:32 +0200 Subject: [PATCH] Change compiler checks --- Sources/HTTPTypesFoundation/URLSession+HTTPTypes.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.