Use target_pointer_width attribute
@@ -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,
}
@@ -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 {
