about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-03-29 01:32:23 +0100
committerGitHub <noreply@github.com>2020-03-29 01:32:23 +0100
commitbe8d896a4e7a7f87d7a4f418bfb4a8fb2d8d1abe (patch)
tree54c8b39ae7352cc7096ca57402d0094876df6c6b /src
parentacc1dc29064efd1ed712ec48a90ed669b64f7eee (diff)
parent38c8ba33ef0310d2200382ec441f473824d3dd46 (diff)
downloadrust-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.rs2
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);