Skip to content

Commit

Permalink
Use target_pointer_width attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-ea committed Mar 17, 2022
1 parent f073685 commit 68c988f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1172,9 +1172,9 @@ s_no_extra_traits! {
pub ifi_noproto: u64,
pub ifi_recvtiming: u32,
pub ifi_xmittiming: u32,
#[cfg(any(target_arch = "arm", target_arch = "x86", target_pointer_width = "32"))]
#[cfg(target_pointer_width = "32")]
pub ifi_lastchange: ::timeval,
#[cfg(not(any(target_arch = "arm", target_arch = "x86", target_pointer_width = "32")))]
#[cfg(not(target_pointer_width = "32"))]
pub ifi_lastchange: timeval32,
}

Expand Down Expand Up @@ -5522,10 +5522,10 @@ extern "C" {
}

cfg_if! {
if #[cfg(any(target_arch = "arm", target_arch = "x86", target_pointer_width = "32"))] {
if #[cfg(target_pointer_width = "32")] {
mod b32;
pub use self::b32::*;
} else if #[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))] {
} else if #[cfg(target_pointer_width = "64")] {
mod b64;
pub use self::b64::*;
} else {
Expand Down

0 comments on commit 68c988f

Please sign in to comment.