summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2019-05-29 13:05:49 +0200
committergnzlbg <gonzalobg88@gmail.com>2019-05-29 13:05:49 +0200
commit08a4519714444e10d6f494b426805e265f981628 (patch)
treebf14a1bc228cbfe0a4e36c8efe3b220b8bfbf77e /src/lib.rs
parentb6ab2f056c35caee56b47c5780d72da3c6d31697 (diff)
downloadrust-libc-08a4519714444e10d6f494b426805e265f981628.tar.gz
Refactor fixed-width integer types into its own module
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index baf6324341..2dc42702fc 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -90,27 +90,51 @@ cfg_if! {
cfg_if! {
if #[cfg(windows)] {
+ mod fixed_width_ints;
+ pub use fixed_width_ints::*;
+
mod windows;
pub use windows::*;
} else if #[cfg(target_os = "cloudabi")] {
+ mod fixed_width_ints;
+ pub use fixed_width_ints::*;
+
mod cloudabi;
pub use cloudabi::*;
} else if #[cfg(target_os = "fuchsia")] {
+ mod fixed_width_ints;
+ pub use fixed_width_ints::*;
+
mod fuchsia;
pub use fuchsia::*;
} else if #[cfg(target_os = "switch")] {
+ mod fixed_width_ints;
+ pub use fixed_width_ints::*;
+
mod switch;
pub use switch::*;
} else if #[cfg(unix)] {
+ mod fixed_width_ints;
+ pub use fixed_width_ints::*;
+
mod unix;
pub use unix::*;
} else if #[cfg(target_os = "hermit")] {
+ mod fixed_width_ints;
+ pub use fixed_width_ints::*;
+
mod hermit;
pub use hermit::*;
} else if #[cfg(all(target_env = "sgx", target_vendor = "fortanix"))] {
+ mod fixed_width_ints;
+ pub use fixed_width_ints::*;
+
mod sgx;
pub use sgx::*;
} else if #[cfg(any(target_env = "wasi", target_os = "wasi"))] {
+ mod fixed_width_ints;
+ pub use fixed_width_ints::*;
+
mod wasi;
pub use wasi::*;
} else {