diff options
| author | Christiaan Dirkx <christiaan@dirkx.email> | 2021-03-04 15:15:26 +0100 |
|---|---|---|
| committer | Christiaan Dirkx <christiaan@dirkx.email> | 2021-05-03 16:56:20 +0200 |
| commit | ffc20e48de64f73ea57b6b7c121e2b50de30097f (patch) | |
| tree | 940d3816f1f7c9605615d5ab47313ef748a1411a /library/std/src/os/windows/raw.rs | |
| parent | 7024bfffbdd1fb3dafa3f263f6d10fd2aed2ff2d (diff) | |
| download | rust-ffc20e48de64f73ea57b6b7c121e2b50de30097f.tar.gz rust-ffc20e48de64f73ea57b6b7c121e2b50de30097f.zip | |
Move `std::sys::windows::ext` to `std::os::windows`
Diffstat (limited to 'library/std/src/os/windows/raw.rs')
| -rw-r--r-- | library/std/src/os/windows/raw.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/library/std/src/os/windows/raw.rs b/library/std/src/os/windows/raw.rs new file mode 100644 index 00000000000..5014e008eb5 --- /dev/null +++ b/library/std/src/os/windows/raw.rs @@ -0,0 +1,14 @@ +//! Windows-specific primitives. + +#![stable(feature = "raw_ext", since = "1.1.0")] + +use crate::os::raw::c_void; + +#[stable(feature = "raw_ext", since = "1.1.0")] +pub type HANDLE = *mut c_void; +#[cfg(target_pointer_width = "32")] +#[stable(feature = "raw_ext", since = "1.1.0")] +pub type SOCKET = u32; +#[cfg(target_pointer_width = "64")] +#[stable(feature = "raw_ext", since = "1.1.0")] +pub type SOCKET = u64; |
