aboutsummaryrefslogtreecommitdiff
path: root/common/malloc_simple.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/malloc_simple.c')
-rw-r--r--common/malloc_simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/malloc_simple.c b/common/malloc_simple.c
index dd1119f8cfb..479a1e47b64 100644
--- a/common/malloc_simple.c
+++ b/common/malloc_simple.c
@@ -44,7 +44,7 @@ void *memalign_simple(size_t align, size_t bytes)
return ptr;
}
-#ifdef CONFIG_SYS_MALLOC_SIMPLE
+#if CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
void *calloc(size_t nmemb, size_t elem_size)
{
size_t size = nmemb * elem_size;