From c4da74dbf6bd71006cd58c331ef366a01f73c41f Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 22 Jul 2021 14:50:22 +0300 Subject: [PATCH] ci: fix building V on windows with tcc (regression since d7dcb47) --- vlib/os/file.c.v | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/vlib/os/file.c.v b/vlib/os/file.c.v index 40feed090d..7383f5a781 100644 --- a/vlib/os/file.c.v +++ b/vlib/os/file.c.v @@ -16,7 +16,6 @@ struct FileInfo { fn C.fseeko(&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 @@ -774,12 +773,7 @@ pub fn (f &File) tell() ?i64 { if !f.is_opened { return error_file_not_opened() } - mut pos := i64(0) - $if windows && x64 { - pos = C._ftelli64(f.cfile) - } $else { - pos = C.ftell(f.cfile) - } + pos := C.ftell(f.cfile) if pos == -1 { return error(posix_get_error_msg(C.errno)) }