We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3ff2b commit c379025Copy full SHA for c379025
Xcode/Sources/String+File.swift
@@ -29,9 +29,15 @@ extension String {
29
fclose(pointer)
30
}
31
32
+ #if os(Windows)
33
public func seek(_ offset: Int32) -> Bool {
34
return (fseek(pointer, offset, SEEK_SET) == 0)
35
36
+ #else
37
+ public func seek(_ offset: Int) -> Bool {
38
+ return (fseek(pointer, offset, SEEK_SET) == 0)
39
+ }
40
+ #endif
41
42
public func read(_ data: inout [UInt8]) throws -> Int {
43
if data.count <= 0 {
0 commit comments