Skip to content

Commit 4a1d9ac

Browse files
committed
chore: wip
1 parent 129b056 commit 4a1d9ac

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

libc-test/tests/windows_time.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
/// functions that expect it as a parameter.
1212
#[test]
1313
fn test_bitwidth_store() {
14-
if cfg!(all(target_arch = "x86", target_env = "gnu")) {
14+
if cfg!(all(
15+
target_arch = "x86",
16+
target_env = "gnu",
17+
not(gnu_time_bits64),
18+
)) {
1519
assert_eq!(size_of::<libc::time_t>(), 4);
1620
} else {
1721
assert_eq!(size_of::<libc::time_t>(), 8);

src/windows/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,11 @@ extern "C" {
401401
// Under Windows x86 with GNU, `time_t` is still 32-bit wide on stable, so
402402
// these routines have to link with their 32-bit variants.
403403
cfg_if! {
404-
if #[cfg(all(target_arch = "x86", target_env = "gnu"))] {
404+
if #[cfg(all(
405+
target_arch = "x86",
406+
target_env = "gnu",
407+
not(gnu_time_bits64),
408+
))] {
405409
#[link_name = "_ctime32"]
406410
pub fn ctime(sourceTime: *const time_t) -> *mut c_char;
407411
#[link_name = "_difftime32"]

0 commit comments

Comments
 (0)