diff options
Diffstat (limited to 'components/allocator/lib.rs')
-rw-r--r-- | components/allocator/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/allocator/lib.rs b/components/allocator/lib.rs index 40d7bc78c85..45a535a6e41 100644 --- a/components/allocator/lib.rs +++ b/components/allocator/lib.rs @@ -98,9 +98,9 @@ mod platform { #[cfg(windows)] mod platform { - use kernel32::{GetProcessHeap, HeapSize, HeapValidate}; pub use std::alloc::System as Allocator; use std::os::raw::c_void; + use winapi::um::heapapi::{GetProcessHeap, HeapSize, HeapValidate}; /// Get the size of a heap block. pub unsafe extern "C" fn usable_size(mut ptr: *const c_void) -> usize { |