Skip to content

Commit b3bbf1a

Browse files
authored
Merge pull request #1665 from 0xngold/add_gmttime
Add FFI bindings for libc's gmttime_s.
2 parents 46c8ecc + 92d47c8 commit b3bbf1a

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)