summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorroblabla <unfiltered@roblab.la>2018-08-02 13:46:37 +0200
committerroblabla <unfiltered@roblab.la>2018-08-02 13:46:37 +0200
commit8ff70b6a4c8feeba9e9c00bb4d1a0af4b94d4bb1 (patch)
tree14b4f3a3c3012077d3f31f51d374281454c62eb4 /src/lib.rs
parent8318a3ec1c1f13aab21d0a74ac9a7cf618bb2261 (diff)
downloadrust-libc-8ff70b6a4c8feeba9e9c00bb4d1a0af4b94d4bb1.tar.gz
Add some switch-related libc typedefs
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
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::*;