Remove PSRWLOCK

This commit is contained in:
Chris Denton 2024-07-14 07:26:18 +00:00
parent 84dd7e4959
commit 21f69b5b82
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
2 changed files with 1 additions and 4 deletions

View File

@ -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;

View File

@ -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()
}