Move *nix specific implementation to separate module

This commit is contained in:
Jakub Konka
2019-05-19 14:52:41 +02:00
committed by Dan Gohman
parent 3372e47e5a
commit 7605584691
21 changed files with 3184 additions and 2690 deletions

13
src/sys/mod.rs Normal file
View File

@@ -0,0 +1,13 @@
use cfg_if::cfg_if;
cfg_if! {
if #[cfg(unix)] {
mod unix;
pub use self::unix::*;
} else if #[cfg(windows)] {
mod windows;
pub use self::windows::*;
} else {
compile_error!("wasi-common doesn't compile for this platform yet");
}
}