add #if os for bytes function

This commit is contained in:
zunda committed 2024-07-16 11:32:51 +09:00
1 parent 4b41fd0a3a
commit 123410433b
1 file changed
+2
@@ -114,6 +114,7 @@ extension URLSession {
return (location, response)
}
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS)
/// Returns a byte stream that conforms to AsyncSequence protocol.
///
/// - Parameter request: The `HTTPRequest` for which to load data.
@@ -129,6 +130,7 @@ extension URLSession {
}
return (data, response)
}
#endif
}
#endif