diff --git a/std/src/sys/pal/windows/c.rs b/std/src/sys/pal/windows/c.rs index e284804c2c8de..83b87f47a8bec 100644 --- a/std/src/sys/pal/windows/c.rs +++ b/std/src/sys/pal/windows/c.rs @@ -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; diff --git a/std/src/sys/sync/mutex/windows7.rs b/std/src/sys/sync/mutex/windows7.rs index ef2f84082cd5c..689dba10f01ed 100644 --- a/std/src/sys/sync/mutex/windows7.rs +++ b/std/src/sys/sync/mutex/windows7.rs @@ -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() }