diff options
| author | bors <bors@rust-lang.org> | 2022-09-11 01:44:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-11 01:44:09 +0000 |
| commit | abd4d2ef0d23553c1d21b90d3b1353e3a42e1edf (patch) | |
| tree | 5f2666ab468326b856a8a0b1cc7cb0dd0a3b6266 | |
| parent | 781ef3e99582fee003264087b0eea106a8c7518f (diff) | |
| parent | 931e851144bbdc8b44f7805d3e62aa933916b305 (diff) | |
| download | rust-abd4d2ef0d23553c1d21b90d3b1353e3a42e1edf.tar.gz rust-abd4d2ef0d23553c1d21b90d3b1353e3a42e1edf.zip | |
Auto merge of #101643 - ChrisDenton:alloc-link-kernel32, r=thomcc
Explicitly link kernel32.lib from alloc
| -rw-r--r-- | library/std/src/sys/windows/alloc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/windows/alloc.rs b/library/std/src/sys/windows/alloc.rs index fe00c08aa6a..d53ea16005f 100644 --- a/library/std/src/sys/windows/alloc.rs +++ b/library/std/src/sys/windows/alloc.rs @@ -16,6 +16,7 @@ mod tests; // Flag to indicate that the memory returned by `HeapAlloc` should be zeroed. const HEAP_ZERO_MEMORY: c::DWORD = 0x00000008; +#[link(name = "kernel32")] extern "system" { // Get a handle to the default heap of the current process, or null if the operation fails. // |
