1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix building V on windows with tcc (regression since d7dcb47)

This commit is contained in:
Delyan Angelov 2021-07-22 14:50:22 +03:00
parent 9171c1131e
commit c4da74dbf6

View File

@ -16,7 +16,6 @@ struct FileInfo {
fn C.fseeko(&C.FILE, u64, int) int fn C.fseeko(&C.FILE, u64, int) int
fn C._fseeki64(&C.FILE, u64, int) int fn C._fseeki64(&C.FILE, u64, int) int
fn C._ftelli64(&C.FILE) i64
fn C.getc(&C.FILE) int fn C.getc(&C.FILE) int
@ -774,12 +773,7 @@ pub fn (f &File) tell() ?i64 {
if !f.is_opened { if !f.is_opened {
return error_file_not_opened() return error_file_not_opened()
} }
mut pos := i64(0) pos := C.ftell(f.cfile)
$if windows && x64 {
pos = C._ftelli64(f.cfile)
} $else {
pos = C.ftell(f.cfile)
}
if pos == -1 { if pos == -1 {
return error(posix_get_error_msg(C.errno)) return error(posix_get_error_msg(C.errno))
} }