Skip to content

Commit b988e27

Browse files
committed
Refactor linux x86_64 module
1 parent 60571f9 commit b988e27

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

src/unix/linux_like/linux/gnu/b64/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ cfg_if! {
7777
} else if #[cfg(any(target_arch = "x86_64"))] {
7878
mod x86_64;
7979
pub use self::x86_64::*;
80-
cfg_if! {
81-
if #[cfg(target_pointer_width = "32")] {
82-
mod x32;
83-
pub use self::x32::*;
84-
} else {
85-
mod not_x32;
86-
pub use self::not_x32::*;
87-
}
88-
}
8980
} else {
9081
// Unknown target_arch
9182
}

src/unix/linux_like/linux/gnu/b64/x86_64.rs renamed to src/unix/linux_like/linux/gnu/b64/x86_64/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,3 +866,14 @@ extern {
866866
pub fn ioperm(from: ::c_ulong, num: ::c_ulong,
867867
turn_on: ::c_int) -> ::c_int;
868868
}
869+
870+
871+
cfg_if! {
872+
if #[cfg(target_pointer_width = "32")] {
873+
mod x32;
874+
pub use self::x32::*;
875+
} else {
876+
mod not_x32;
877+
pub use self::not_x32::*;
878+
}
879+
}

0 commit comments

Comments
 (0)