mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Remove PSRWLOCK
This commit is contained in:
parent
84dd7e4959
commit
21f69b5b82
@ -21,9 +21,6 @@ pub type DWORD = c_ulong;
|
||||
pub type WCHAR = u16;
|
||||
pub type ULONG = c_ulong;
|
||||
|
||||
#[cfg(target_vendor = "win7")]
|
||||
pub type PSRWLOCK = *mut SRWLOCK;
|
||||
|
||||
pub type socklen_t = c_int;
|
||||
pub type ADDRESS_FAMILY = c_ushort;
|
||||
pub use FD_SET as fd_set;
|
||||
|
@ -25,7 +25,7 @@ unsafe impl Send for Mutex {}
|
||||
unsafe impl Sync for Mutex {}
|
||||
|
||||
#[inline]
|
||||
pub unsafe fn raw(m: &Mutex) -> c::PSRWLOCK {
|
||||
pub unsafe fn raw(m: &Mutex) -> *mut c::SRWLOCK {
|
||||
m.srwlock.get()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user