Skip to content

Commit

Permalink
disable 64-bit time
Browse files Browse the repository at this point in the history
  • Loading branch information
snogge committed Feb 29, 2024
1 parent 2b29f47 commit 40dfadc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,5 +266,5 @@ fn is_gnu_time64_abi() -> bool {
// },
// Err(_) => panic!("CARGO_CFG_TARGET_ARCH not set"),
// };
return true;
return false;
}
10 changes: 5 additions & 5 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3295,11 +3295,11 @@ fn test_linux(target: &str) {
// glibc versions older than 2.29.
cfg.define("__GLIBC_USE_DEPRECATED_SCANF", None);

if gnu && &env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32" && !x32 {
cfg.define("_TIME_BITS", Some("64"));
cfg.define("_FILE_OFFSET_BITS", Some("64"));
cfg.cfg("gnu_time64_abi", None);
}
// if gnu && &env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32" && !x32 {
// cfg.define("_TIME_BITS", Some("64"));
// cfg.define("_FILE_OFFSET_BITS", Some("64"));
// cfg.cfg("gnu_time64_abi", None);
// }

headers! { cfg:
"ctype.h",
Expand Down

0 comments on commit 40dfadc

Please sign in to comment.