Skip to content

Commit 68c988f

Browse files
committed
Use target_pointer_width attribute
1 parent f073685 commit 68c988f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,9 +1172,9 @@ s_no_extra_traits! {
11721172
pub ifi_noproto: u64,
11731173
pub ifi_recvtiming: u32,
11741174
pub ifi_xmittiming: u32,
1175-
#[cfg(any(target_arch = "arm", target_arch = "x86", target_pointer_width = "32"))]
1175+
#[cfg(target_pointer_width = "32")]
11761176
pub ifi_lastchange: ::timeval,
1177-
#[cfg(not(any(target_arch = "arm", target_arch = "x86", target_pointer_width = "32")))]
1177+
#[cfg(not(target_pointer_width = "32"))]
11781178
pub ifi_lastchange: timeval32,
11791179
}
11801180

@@ -5522,10 +5522,10 @@ extern "C" {
55225522
}
55235523

55245524
cfg_if! {
5525-
if #[cfg(any(target_arch = "arm", target_arch = "x86", target_pointer_width = "32"))] {
5525+
if #[cfg(target_pointer_width = "32")] {
55265526
mod b32;
55275527
pub use self::b32::*;
5528-
} else if #[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] {
5528+
} else if #[cfg(target_pointer_width = "64")] {
55295529
mod b64;
55305530
pub use self::b64::*;
55315531
} else {

0 commit comments

Comments
 (0)