diff options
Diffstat (limited to 'nuttx/mm/umm_calloc.c')
-rw-r--r-- | nuttx/mm/umm_calloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/mm/umm_calloc.c b/nuttx/mm/umm_calloc.c index 0009b5a1f..ed1a2d606 100644 --- a/nuttx/mm/umm_calloc.c +++ b/nuttx/mm/umm_calloc.c @@ -43,6 +43,8 @@ #include <nuttx/mm.h> +#if !defined(CONFIG_BUILD_PROTECTED) || !defined(__KERNEL__) + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -80,3 +82,5 @@ FAR void *calloc(size_t n, size_t elem_size) { return mm_calloc(USR_HEAP, n, elem_size); } + +#endif /* !CONFIG_BUILD_PROTECTED || !__KERNEL__ */ |