Upgrade to windows-bindgen 0.61

This commit is contained in:
Dirkjan Ochtman 2025-03-24 10:41:08 +01:00
parent 265c79b2a5
commit 6a853015b7
2 changed files with 13 additions and 3 deletions

View File

@ -52,7 +52,7 @@ js-sys = { version = "0.3", optional = true } # contains FFI bindings for
windows-link = { version = "0.1", optional = true }
[target.'cfg(windows)'.dev-dependencies]
windows-bindgen = { version = "0.60" } # MSRV is 1.74
windows-bindgen = { version = "0.61" } # MSRV is 1.74
[target.'cfg(unix)'.dependencies]
iana-time-zone = { version = "0.1.45", optional = true, features = ["fallback"] }

View File

@ -18,14 +18,19 @@ pub struct DYNAMIC_TIME_ZONE_INFORMATION {
pub TimeZoneKeyName: [u16; 128],
pub DynamicDaylightTimeDisabled: bool,
}
impl Default for DYNAMIC_TIME_ZONE_INFORMATION {
fn default() -> Self {
unsafe { core::mem::zeroed() }
}
}
#[repr(C)]
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Default)]
pub struct FILETIME {
pub dwLowDateTime: u32,
pub dwHighDateTime: u32,
}
#[repr(C)]
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Default)]
pub struct SYSTEMTIME {
pub wYear: u16,
pub wMonth: u16,
@ -47,3 +52,8 @@ pub struct TIME_ZONE_INFORMATION {
pub DaylightDate: SYSTEMTIME,
pub DaylightBias: i32,
}
impl Default for TIME_ZONE_INFORMATION {
fn default() -> Self {
unsafe { core::mem::zeroed() }
}
}