s/alloc_init()/libtock_alloc_init()/g
diff --git a/core/src/alloc.rs b/core/src/alloc.rs
index 1c58edc..f971849 100644
--- a/core/src/alloc.rs
+++ b/core/src/alloc.rs
@@ -7,7 +7,7 @@
static mut HEAP: Heap = Heap::empty();
#[no_mangle]
-unsafe fn alloc_init(app_heap_start: usize, app_heap_size: usize) {
+unsafe fn libtock_alloc_init(app_heap_start: usize, app_heap_size: usize) {
HEAP.init(app_heap_start, app_heap_size);
}
diff --git a/core/src/entry_point/mod.rs b/core/src/entry_point/mod.rs
index 0a63b8e..2ab2351 100644
--- a/core/src/entry_point/mod.rs
+++ b/core/src/entry_point/mod.rs
@@ -128,7 +128,7 @@
memop::set_brk(app_heap_end as *const u8);
#[cfg(feature = "alloc_init")]
- crate::alloc_init(app_heap_start, app_heap_size);
+ crate::libtock_alloc_init(app_heap_start, app_heap_size);
main(0, ptr::null());
diff --git a/core/src/lib.rs b/core/src/lib.rs
index a529b55..ce77176 100644
--- a/core/src/lib.rs
+++ b/core/src/lib.rs
@@ -10,7 +10,7 @@
#[cfg(feature = "alloc_init")]
extern "Rust" {
- fn alloc_init(app_heap_start: usize, app_heap_size: usize);
+ fn libtock_alloc_init(app_heap_start: usize, app_heap_size: usize);
}
pub mod callback;