mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -13,4 +13,4 @@ path = "lib.rs"
|
|||
jemalloc-sys = { version = "0.1.4" }
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
kernel32-sys = { version = "0.2.1" }
|
||||
winapi = { version = "0.3", features = ["heapapi"] }
|
||||
|
|
|
@ -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