Refactor linux x86_64 module

This commit is contained in:
gnzlbg 2019-06-05 11:35:00 +02:00
parent 60571f9143
commit b988e27498
4 changed files with 11 additions and 9 deletions

View File

@ -77,15 +77,6 @@ cfg_if! {
} else if #[cfg(any(target_arch = "x86_64"))] {
mod x86_64;
pub use self::x86_64::*;
cfg_if! {
if #[cfg(target_pointer_width = "32")] {
mod x32;
pub use self::x32::*;
} else {
mod not_x32;
pub use self::not_x32::*;
}
}
} else {
// Unknown target_arch
}

View File

@ -866,3 +866,14 @@ extern {
pub fn ioperm(from: ::c_ulong, num: ::c_ulong,
turn_on: ::c_int) -> ::c_int;
}
cfg_if! {
if #[cfg(target_pointer_width = "32")] {
mod x32;
pub use self::x32::*;
} else {
mod not_x32;
pub use self::not_x32::*;
}
}