From da1016d580300b5182b3d338863f8343941ba986 Mon Sep 17 00:00:00 2001 From: Laziest <_limitless@tuta.io> Date: Thu, 10 Dec 2020 06:30:43 +0200 Subject: [PATCH] fix osx version for #available --- Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift b/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift index 14dfe65..a04ba37 100644 --- a/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift +++ b/Sources/GoogleCloudLogging/GoogleCloudLogHandler.swift @@ -459,7 +459,7 @@ extension FileHandle { @discardableResult func legacySeekToEnd() throws -> UInt64 { - if #available(OSX 10.15, iOS 13.4, watchOS 6.2, tvOS 13.4, *) { + if #available(OSX 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4, *) { return try seekToEnd() } else { return seekToEndOfFile() @@ -467,7 +467,7 @@ extension FileHandle { } func legacyWrite(contentsOf data: T) throws where T : DataProtocol { - if #available(OSX 10.15, iOS 13.4, watchOS 6.2, tvOS 13.4, *) { + if #available(OSX 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4, *) { try write(contentsOf: data) } else { write(Data(data)) @@ -475,7 +475,7 @@ extension FileHandle { } func legacyReadToEnd() throws -> Data? { - if #available(OSX 10.15, iOS 13.4, watchOS 6.2, tvOS 13.4, *) { + if #available(OSX 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4, *) { return try readToEnd() } else { return readDataToEndOfFile()