]>
Commit | Line | Data |
---|---|---|
d9579d0f | 1 | //! Windows-specific primitives |
223e47cc | 2 | |
62682a34 | 3 | #![stable(feature = "raw_ext", since = "1.1.0")] |
223e47cc | 4 | |
532ac7d7 | 5 | use crate::os::raw::c_void; |
223e47cc | 6 | |
60c5eb7d XL |
7 | #[stable(feature = "raw_ext", since = "1.1.0")] |
8 | pub type HANDLE = *mut c_void; | |
d9579d0f | 9 | #[cfg(target_pointer_width = "32")] |
60c5eb7d XL |
10 | #[stable(feature = "raw_ext", since = "1.1.0")] |
11 | pub type SOCKET = u32; | |
d9579d0f | 12 | #[cfg(target_pointer_width = "64")] |
60c5eb7d XL |
13 | #[stable(feature = "raw_ext", since = "1.1.0")] |
14 | pub type SOCKET = u64; |