diff options
| author | Chris Denton <christophersdenton@gmail.com> | 2022-09-10 11:57:36 +0100 |
|---|---|---|
| committer | Chris Denton <christophersdenton@gmail.com> | 2022-09-10 11:57:36 +0100 |
| commit | 931e851144bbdc8b44f7805d3e62aa933916b305 (patch) | |
| tree | 056a182bbdad3eca4922a5ab613152c26b9f9df2 | |
| parent | db9d86b58dff2a19d84d5e557641dfbb4cbb3a8d (diff) | |
| download | rust-931e851144bbdc8b44f7805d3e62aa933916b305.tar.gz rust-931e851144bbdc8b44f7805d3e62aa933916b305.zip | |
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. // |
