diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-03 11:43:23 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-03 11:43:23 -0600 |
commit | 021cf46544be7eeb7900630cea0ee6ad768ba233 (patch) | |
tree | ed79ec918407fb50623e3423f14823fbdb55af14 /nuttx/mm/umm_malloc.c | |
parent | 04a080ef2aaa4353e21ba5e767b5b304fdbf5365 (diff) | |
download | px4-nuttx-021cf46544be7eeb7900630cea0ee6ad768ba233.tar.gz px4-nuttx-021cf46544be7eeb7900630cea0ee6ad768ba233.tar.bz2 px4-nuttx-021cf46544be7eeb7900630cea0ee6ad768ba233.zip |
I love/hate conditional compilation
Diffstat (limited to 'nuttx/mm/umm_malloc.c')
-rw-r--r-- | nuttx/mm/umm_malloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/mm/umm_malloc.c b/nuttx/mm/umm_malloc.c index fd4fe9608..31511b82f 100644 --- a/nuttx/mm/umm_malloc.c +++ b/nuttx/mm/umm_malloc.c @@ -44,6 +44,8 @@ #include <nuttx/mm.h> +#if !defined(CONFIG_BUILD_PROTECTED) || !defined(__KERNEL__) + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -135,3 +137,5 @@ FAR void *malloc(size_t size) return mm_malloc(USR_HEAP, size); #endif } + +#endif /* !CONFIG_BUILD_PROTECTED || !__KERNEL__ */ |