Skip to content
Snippets Groups Projects
Commit 9c9e1fb9 authored by Martin Kröning's avatar Martin Kröning :crab:
Browse files

virtualmem::allocate_aligned: Compile conditionally

parent 46a2e990
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ pub fn allocate(size: usize) -> Result<VirtAddr, AllocError> {
))
}
#[cfg(not(feature = "newlib"))]
pub fn allocate_aligned(size: usize, alignment: usize) -> Result<VirtAddr, AllocError> {
assert!(size > 0);
assert!(alignment > 0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment