1 //! Windows-specific primitives.
3 #![stable(feature = "raw_ext", since = "1.1.0")]
5 use crate::os::raw::c_void;
7 #[stable(feature = "raw_ext", since = "1.1.0")]
8 pub type HANDLE = *mut c_void;
9 #[cfg(target_pointer_width = "32")]
11 #[stable(feature = "raw_ext", since = "1.1.0")]
12 pub type SOCKET = u32;
13 #[cfg(target_pointer_width = "64")]
15 #[stable(feature = "raw_ext", since = "1.1.0")]
16 pub type SOCKET = u64;