| 1 |
//! The following is derived from Rust's |
| 2 |
//! library/std/src/os/windows/raw.rs, |
| 3 |
//! library/std/src/os/windows/io/raw.rs and |
| 4 |
//! library/std/src/os/windows/io/socket.rs |
| 5 |
//! at revision |
| 6 |
//! 4f9b394c8a24803e57ba892fa00e539742ebafc0. |
| 7 |
//! |
| 8 |
//! All code in this file is licensed MIT or Apache 2.0 at your option. |
| 9 |
|
| 10 |
mod raw { |
| 11 |
#[cfg(target_pointer_width = "32")] |
| 12 |
#[cfg_attr(staged_api, stable(feature = "raw_ext", since = "1.1.0"))] |
| 13 |
pub type SOCKET = u32; |
| 14 |
#[cfg(target_pointer_width = "64")] |
| 15 |
#[cfg_attr(staged_api, stable(feature = "raw_ext", since = "1.1.0"))] |
| 16 |
pub type SOCKET = u64; |
| 17 |
} |
| 18 |
|
| 19 |
pub mod io; |