1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Operating system specific functionality.
#[cfg(target_family = "unix")]
pub mod unix;
#[cfg(target_os = "windows")]
pub mod windows;

/// Constant that is only set if the target operating system is Linux.
#[cfg(target_os = "linux")]
pub const NSTD_OS_LINUX: () = ();

/// Constant that is only set if the target operating system is macOS.
#[cfg(target_os = "macos")]
pub const NSTD_OS_MACOS: () = ();

/// Constant that is only set if the target operating system is Windows.
#[cfg(target_os = "windows")]
pub const NSTD_OS_WINDOWS: () = ();