Skip to content

Commit bbdcfff

Browse files
committed
Reorder switch cfg
1 parent 65bf808 commit bbdcfff

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,6 @@ cfg_if! {
111111

112112
mod fuchsia;
113113
pub use fuchsia::*;
114-
} else if #[cfg(target_os = "switch")] {
115-
mod fixed_width_ints;
116-
pub use fixed_width_ints::*;
117-
118-
mod switch;
119-
pub use switch::*;
120114
} else if #[cfg(target_os = "psp")] {
121115
mod fixed_width_ints;
122116
pub use fixed_width_ints::*;
@@ -129,12 +123,18 @@ cfg_if! {
129123

130124
mod vxworks;
131125
pub use vxworks::*;
132-
} else if #[cfg(unix)] {
126+
} else if #[cfg(all(unix, any(not(target_os = "switch"), target_env = "devkita64")))] {
133127
mod fixed_width_ints;
134128
pub use fixed_width_ints::*;
135129

136130
mod unix;
137131
pub use unix::*;
132+
} else if #[cfg(target_os = "switch")] {
133+
mod fixed_width_ints;
134+
pub use fixed_width_ints::*;
135+
136+
mod switch;
137+
pub use switch::*;
138138
} else if #[cfg(target_os = "hermit")] {
139139
mod fixed_width_ints;
140140
pub use fixed_width_ints::*;

0 commit comments

Comments
 (0)