From 92d47c8a530bd58f770b08667596b07d6cc14e05 Mon Sep 17 00:00:00 2001 From: Noah Gold <0xngold@users.noreply.github.com> Date: Fri, 14 Feb 2020 18:28:17 -0800 Subject: [PATCH] Add FFI bindings for libc's gmttime_s. --- src/windows/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/windows/mod.rs b/src/windows/mod.rs index a83babae..f440489a 100644 --- a/src/windows/mod.rs +++ b/src/windows/mod.rs @@ -400,6 +400,8 @@ extern "C" { pub fn signal(signum: c_int, handler: sighandler_t) -> sighandler_t; pub fn raise(signum: c_int) -> c_int; + #[link_name = "_gmtime64_s"] + pub fn gmtime_s(destTime: *mut tm, srcTime: *const time_t) -> ::c_int; #[link_name = "_time64"] pub fn time(destTime: *mut time_t) -> time_t; #[link_name = "_chmod"] -- GitLab