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_realloc.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_realloc.c')
-rw-r--r-- | nuttx/mm/umm_realloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/mm/umm_realloc.c b/nuttx/mm/umm_realloc.c index 344d24d68..45da6e7ec 100644 --- a/nuttx/mm/umm_realloc.c +++ b/nuttx/mm/umm_realloc.c @@ -43,6 +43,8 @@ #include <nuttx/mm.h> +#if !defined(CONFIG_BUILD_PROTECTED) || !defined(__KERNEL__) + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -91,3 +93,5 @@ FAR void *realloc(FAR void *oldmem, size_t size) { return mm_realloc(USR_HEAP, oldmem, size); } + +#endif /* !CONFIG_BUILD_PROTECTED || !__KERNEL__ */ |