Skip to content

Commit

Permalink
Rename to aarch64-unknown-switch-libnx
Browse files Browse the repository at this point in the history
  • Loading branch information
leo60228 committed Jul 21, 2020
1 parent 2327437 commit 9db9538
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ cfg_if! {

mod vxworks;
pub use vxworks::*;
} else if #[cfg(all(unix, any(not(target_os = "switch"), target_env = "devkita64")))] {
} else if #[cfg(all(unix, any(not(target_os = "switch"), target_env = "libnx")))] {
mod fixed_width_ints;
pub use fixed_width_ints::*;

Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ cfg_if! {
#[link(name = "root")]
#[link(name = "network")]
extern {}
} else if #[cfg(target_env = "devkita64")] {
} else if #[cfg(target_env = "libnx")] {
#[link(name = "c")]
#[link(name = "m")]
extern {}
Expand Down Expand Up @@ -1461,7 +1461,7 @@ extern "C" {
}

cfg_if! {
if #[cfg(not(target_env = "devkita64"))] {
if #[cfg(not(target_env = "libnx"))] {
extern "C" {
pub fn cfgetispeed(termios: *const ::termios) -> ::speed_t;
pub fn cfgetospeed(termios: *const ::termios) -> ::speed_t;
Expand Down Expand Up @@ -1536,7 +1536,7 @@ cfg_if! {
if #[cfg(not(any(
target_os = "solaris",
target_os = "illumos",
target_env = "devkita64"
target_env = "libnx"
)))] {
extern {
pub fn cfmakeraw(termios: *mut ::termios);
Expand All @@ -1550,9 +1550,9 @@ cfg_if! {
if #[cfg(target_env = "uclibc")] {
mod uclibc;
pub use self::uclibc::*;
} else if #[cfg(target_env = "devkita64")] {
mod devkita64;
pub use self::devkita64::*;
} else if #[cfg(target_env = "libnx")] {
mod libnx;
pub use self::libnx::*;
} else if #[cfg(target_env = "newlib")] {
mod newlib;
pub use self::newlib::*;
Expand Down

0 comments on commit 9db9538

Please sign in to comment.