Skip to content

Commit abd4d2e

Browse files
committed
Auto merge of #101643 - ChrisDenton:alloc-link-kernel32, r=thomcc
Explicitly link kernel32.lib from alloc
2 parents 781ef3e + 931e851 commit abd4d2e

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)