diff options
Diffstat (limited to 'lib/mlibc/options/glibc/generic/malloc.cpp')
-rw-r--r-- | lib/mlibc/options/glibc/generic/malloc.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mlibc/options/glibc/generic/malloc.cpp b/lib/mlibc/options/glibc/generic/malloc.cpp new file mode 100644 index 0000000..b5a4daf --- /dev/null +++ b/lib/mlibc/options/glibc/generic/malloc.cpp @@ -0,0 +1,6 @@ +#include <bits/glibc/glibc_malloc.h> +#include <mlibc/allocator.hpp> + +size_t malloc_usable_size(void *p) { + return getAllocator().get_size(p); +} |