From 08ee8273e540ce99d461d91c3004739b4179f711 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Tue, 17 Sep 2024 18:55:56 +0200 Subject: [PATCH] Move rtems cfg-ed import with the others --- src/unix/newlib/mod.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/unix/newlib/mod.rs b/src/unix/newlib/mod.rs index 3602c957d70dd..2d0b0e0a544ca 100644 --- a/src/unix/newlib/mod.rs +++ b/src/unix/newlib/mod.rs @@ -767,6 +767,9 @@ cfg_if! { } else if #[cfg(target_os = "vita")] { mod vita; pub use self::vita::*; + } else if #[cfg(target_os = "rtems")] { + mod rtems; + pub use self::rtems::*; } else if #[cfg(target_arch = "arm")] { mod arm; pub use self::arm::*; @@ -783,13 +786,6 @@ cfg_if! { } } -cfg_if! { - if #[cfg(target_os = "rtems")] { - mod rtems; - pub use self::rtems::*; - } -} - #[macro_use] mod align; expand_align!();