mirror of
https://github.com/apple/swift-http-types
synced 2026-11-26 04:57:48 +00:00
Change compiler checks
This commit is contained in:
1 parent
f3d9ec3eef
commit
310e8eaf92
1 file changed
+2
-2
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user