From e251e76ad021866ea8f89ef8825fff303b38cf0c Mon Sep 17 00:00:00 2001 From: NatalyaKovalova Date: Tue, 26 Sep 2017 17:07:52 +0300 Subject: [PATCH] Add iOS support --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a761b53..dc5f205 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -40,7 +40,7 @@ unsafe fn heap_size_of_impl(ptr: *const c_void) -> usize { // this function doesn't modify the contents of the block that `ptr` points to, so we use // `*const c_void` here. extern "C" { - #[cfg_attr(any(prefixed_jemalloc, target_os = "macos", target_os = "android"), link_name = "je_malloc_usable_size")] + #[cfg_attr(any(prefixed_jemalloc, target_os = "macos", target_os = "ios", target_os = "android"), link_name = "je_malloc_usable_size")] fn malloc_usable_size(ptr: *const c_void) -> usize; } malloc_usable_size(ptr)