Skip to content

Commit 931e851

Browse files
committed
Explicitly link kernel32.lib from alloc
1 parent db9d86b commit 931e851

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/std/src/sys/windows/alloc.rs

+1
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)