Skip to content

Commit c379025

Browse files
author
Ken Ackerson
committed
fixing typing issue on macOS
1 parent 7e3ff2b commit c379025

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Xcode/Sources/String+File.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ extension String {
2929
fclose(pointer)
3030
}
3131

32+
#if os(Windows)
3233
public func seek(_ offset: Int32) -> Bool {
3334
return (fseek(pointer, offset, SEEK_SET) == 0)
3435
}
36+
#else
37+
public func seek(_ offset: Int) -> Bool {
38+
return (fseek(pointer, offset, SEEK_SET) == 0)
39+
}
40+
#endif
3541

3642
public func read(_ data: inout [UInt8]) throws -> Int {
3743
if data.count <= 0 {

0 commit comments

Comments
 (0)