diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-03-29 01:32:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-29 01:32:23 +0100 |
| commit | be8d896a4e7a7f87d7a4f418bfb4a8fb2d8d1abe (patch) | |
| tree | 54c8b39ae7352cc7096ca57402d0094876df6c6b /src | |
| parent | acc1dc29064efd1ed712ec48a90ed669b64f7eee (diff) | |
| parent | 38c8ba33ef0310d2200382ec441f473824d3dd46 (diff) | |
| download | rust-be8d896a4e7a7f87d7a4f418bfb4a8fb2d8d1abe.tar.gz rust-be8d896a4e7a7f87d7a4f418bfb4a8fb2d8d1abe.zip | |
Rollup merge of #70510 - RalfJung:bool-vs-boolean, r=Mark-Simulacrum
fix TryEnterCriticalSection return type Source: https://docs.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-tryentercriticalsection Fixes https://github.com/rust-lang/rust/issues/70504
Diffstat (limited to 'src')
| -rw-r--r-- | src/libstd/sys/windows/c.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/c.rs b/src/libstd/sys/windows/c.rs index 7f93ef87953..134f508dfab 100644 --- a/src/libstd/sys/windows/c.rs +++ b/src/libstd/sys/windows/c.rs @@ -778,7 +778,7 @@ extern "system" { pub fn ioctlsocket(s: SOCKET, cmd: c_long, argp: *mut c_ulong) -> c_int; pub fn InitializeCriticalSection(CriticalSection: *mut CRITICAL_SECTION); pub fn EnterCriticalSection(CriticalSection: *mut CRITICAL_SECTION); - pub fn TryEnterCriticalSection(CriticalSection: *mut CRITICAL_SECTION) -> BOOLEAN; + pub fn TryEnterCriticalSection(CriticalSection: *mut CRITICAL_SECTION) -> BOOL; pub fn LeaveCriticalSection(CriticalSection: *mut CRITICAL_SECTION); pub fn DeleteCriticalSection(CriticalSection: *mut CRITICAL_SECTION); |
