mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-02 07:21:41 +00:00
Upgrade to windows-bindgen 0.61
This commit is contained in:
parent
265c79b2a5
commit
6a853015b7
@ -52,7 +52,7 @@ js-sys = { version = "0.3", optional = true } # contains FFI bindings for
|
|||||||
windows-link = { version = "0.1", optional = true }
|
windows-link = { version = "0.1", optional = true }
|
||||||
|
|
||||||
[target.'cfg(windows)'.dev-dependencies]
|
[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]
|
[target.'cfg(unix)'.dependencies]
|
||||||
iana-time-zone = { version = "0.1.45", optional = true, features = ["fallback"] }
|
iana-time-zone = { version = "0.1.45", optional = true, features = ["fallback"] }
|
||||||
|
@ -18,14 +18,19 @@ pub struct DYNAMIC_TIME_ZONE_INFORMATION {
|
|||||||
pub TimeZoneKeyName: [u16; 128],
|
pub TimeZoneKeyName: [u16; 128],
|
||||||
pub DynamicDaylightTimeDisabled: bool,
|
pub DynamicDaylightTimeDisabled: bool,
|
||||||
}
|
}
|
||||||
|
impl Default for DYNAMIC_TIME_ZONE_INFORMATION {
|
||||||
|
fn default() -> Self {
|
||||||
|
unsafe { core::mem::zeroed() }
|
||||||
|
}
|
||||||
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy, Default)]
|
||||||
pub struct FILETIME {
|
pub struct FILETIME {
|
||||||
pub dwLowDateTime: u32,
|
pub dwLowDateTime: u32,
|
||||||
pub dwHighDateTime: u32,
|
pub dwHighDateTime: u32,
|
||||||
}
|
}
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy, Default)]
|
||||||
pub struct SYSTEMTIME {
|
pub struct SYSTEMTIME {
|
||||||
pub wYear: u16,
|
pub wYear: u16,
|
||||||
pub wMonth: u16,
|
pub wMonth: u16,
|
||||||
@ -47,3 +52,8 @@ pub struct TIME_ZONE_INFORMATION {
|
|||||||
pub DaylightDate: SYSTEMTIME,
|
pub DaylightDate: SYSTEMTIME,
|
||||||
pub DaylightBias: i32,
|
pub DaylightBias: i32,
|
||||||
}
|
}
|
||||||
|
impl Default for TIME_ZONE_INFORMATION {
|
||||||
|
fn default() -> Self {
|
||||||
|
unsafe { core::mem::zeroed() }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user