Skip to content

Commit

Permalink
Explicitly link kernel32.lib from alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Sep 10, 2022
1 parent db9d86b commit 931e851
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/sys/windows/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//
Expand Down

0 comments on commit 931e851

Please sign in to comment.