Auto merge of #101643 - ChrisDenton:alloc-link-kernel32, r=thomcc
Explicitly link kernel32.lib from alloc
This commit is contained in:
commit
abd4d2ef0d
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ mod tests;
|
||||||
// Flag to indicate that the memory returned by `HeapAlloc` should be zeroed.
|
// Flag to indicate that the memory returned by `HeapAlloc` should be zeroed.
|
||||||
const HEAP_ZERO_MEMORY: c::DWORD = 0x00000008;
|
const HEAP_ZERO_MEMORY: c::DWORD = 0x00000008;
|
||||||
|
|
||||||
|
#[link(name = "kernel32")]
|
||||||
extern "system" {
|
extern "system" {
|
||||||
// Get a handle to the default heap of the current process, or null if the operation fails.
|
// Get a handle to the default heap of the current process, or null if the operation fails.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue