Skip to content

Commit 54c4de6

Browse files
committed
Auto merge of #101643 - ChrisDenton:alloc-link-kernel32, r=thomcc
Explicitly link kernel32.lib from alloc
2 parents 4ba1abb + f0e9277 commit 54c4de6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

std/src/sys/windows/alloc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ mod tests;
1616
// Flag to indicate that the memory returned by `HeapAlloc` should be zeroed.
1717
const HEAP_ZERO_MEMORY: c::DWORD = 0x00000008;
1818

19+
#[link(name = "kernel32")]
1920
extern "system" {
2021
// Get a handle to the default heap of the current process, or null if the operation fails.
2122
//

0 commit comments

Comments
 (0)