mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Make Servo components use winapi 0.3
This commit is contained in:
parent
bd0b191d84
commit
600ce022dd
5 changed files with 8 additions and 34 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue