Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/touch/touch_windows.c.v
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
fn C.SetFileTime(hfile u32, const_creation_time voidptr, const_access_time voidptr, const_modification_time voidptr) bool
// The handle is a voidptr because that is what vlib's C.CreateFileW returns;
// it used to return u32, and declaring the parameter as u32 is what made this
// file stop compiling on current V. A HANDLE is a pointer either way.
fn C.SetFileTime(hfile voidptr, const_creation_time voidptr, const_access_time voidptr, const_modification_time voidptr) bool

fn lutime(path string, acctime int, modtime int) ! {
creation_time := t2filetime(-1)
Expand Down
Loading