Skip to content

Commit 92d47c8

Browse files
committed
Add FFI bindings for libc's gmttime_s.
1 parent 46c8ecc commit 92d47c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/windows/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ extern "C" {
400400
pub fn signal(signum: c_int, handler: sighandler_t) -> sighandler_t;
401401
pub fn raise(signum: c_int) -> c_int;
402402

403+
#[link_name = "_gmtime64_s"]
404+
pub fn gmtime_s(destTime: *mut tm, srcTime: *const time_t) -> ::c_int;
403405
#[link_name = "_time64"]
404406
pub fn time(destTime: *mut time_t) -> time_t;
405407
#[link_name = "_chmod"]

0 commit comments

Comments
 (0)