Skip to content

Commit

Permalink
Remove PSRWLOCK
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Jul 15, 2024
1 parent d3205de commit d89bce6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions std/src/sys/pal/windows/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion std/src/sys/sync/mutex/windows7.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit d89bce6

Please sign in to comment.