Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d89bce6

Browse files
committedJul 15, 2024
Remove PSRWLOCK
1 parent d3205de commit d89bce6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed
 

‎std/src/sys/pal/windows/c.rs

-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ pub type DWORD = c_ulong;
2121
pub type WCHAR = u16;
2222
pub type ULONG = c_ulong;
2323

24-
#[cfg(target_vendor = "win7")]
25-
pub type PSRWLOCK = *mut SRWLOCK;
26-
2724
pub type socklen_t = c_int;
2825
pub type ADDRESS_FAMILY = c_ushort;
2926
pub use FD_SET as fd_set;

‎std/src/sys/sync/mutex/windows7.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ unsafe impl Send for Mutex {}
2525
unsafe impl Sync for Mutex {}
2626

2727
#[inline]
28-
pub unsafe fn raw(m: &Mutex) -> c::PSRWLOCK {
28+
pub unsafe fn raw(m: &Mutex) -> *mut c::SRWLOCK {
2929
m.srwlock.get()
3030
}
3131

0 commit comments

Comments
 (0)
Failed to load comments.