diff options
author | roblabla <unfiltered@roblab.la> | 2018-08-02 13:46:37 +0200 |
---|---|---|
committer | roblabla <unfiltered@roblab.la> | 2018-08-02 13:46:37 +0200 |
commit | 8ff70b6a4c8feeba9e9c00bb4d1a0af4b94d4bb1 (patch) | |
tree | 14b4f3a3c3012077d3f31f51d374281454c62eb4 /src/lib.rs | |
parent | 8318a3ec1c1f13aab21d0a74ac9a7cf618bb2261 (diff) | |
download | rust-libc-8ff70b6a4c8feeba9e9c00bb4d1a0af4b94d4bb1.tar.gz |
Add some switch-related libc typedefs
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index b6b5cdb161..7f8e907aaf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -104,6 +104,9 @@ mod dox; cfg_if! { if #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] { // empty ... + } else if #[cfg(target_os = "switch")] { + // On the Switch, we only define some useful universal types for + // convenience. Those can be found in the switch.rs file. } else { // Use repr(u8) as LLVM expects `void*` to be the same as `i8*` to help enable @@ -296,6 +299,9 @@ cfg_if! { } else if #[cfg(target_os = "fuchsia")] { mod fuchsia; pub use fuchsia::*; + } else if #[cfg(target_os = "switch")] { + mod switch; + pub use switch::*; } else if #[cfg(unix)] { mod unix; pub use unix::*; |