Make Servo components use winapi 0.3

This commit is contained in:
Anthony Ramine 2019-01-16 12:43:56 +01:00
parent bd0b191d84
commit 600ce022dd
5 changed files with 8 additions and 34 deletions

View file

@ -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 {