From 95045b96be9a3ddffa452959f0ed1ed4340a7439 Mon Sep 17 00:00:00 2001 From: Franz Busch Date: Fri, 25 Oct 2024 10:51:29 +0200 Subject: [PATCH] Revert "Change compiler checks" This reverts commit 310e8eaf924f4e9852c95eec9c5d383ab8fc5ad1. --- 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 8bcc343..cdf2de6 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) +#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || compiler(>=6) || (compiler(>=6) && os(visionOS)) @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) + #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || (compiler(>=6) && os(visionOS)) /// Returns a byte stream that conforms to AsyncSequence protocol. /// /// - Parameter request: The `HTTPRequest` for which to load data.