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_addregion.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_addregion.c')
-rw-r--r-- | nuttx/mm/umm_addregion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/mm/umm_addregion.c b/nuttx/mm/umm_addregion.c index 22a03cb8a..5cef04b01 100644 --- a/nuttx/mm/umm_addregion.c +++ b/nuttx/mm/umm_addregion.c @@ -41,7 +41,7 @@ #include <nuttx/mm.h> -#ifdef MM_KERNEL_USRHEAP_INIT +#if !defined(CONFIG_BUILD_PROTECTED) || !defined(__KERNEL__) /************************************************************************ * Pre-processor definition @@ -102,4 +102,4 @@ void umm_addregion(FAR void *heap_start, size_t heap_size) mm_addregion(USR_HEAP, heap_start, heap_size); } -#endif /* MM_KERNEL_USRHEAP_INIT */ +#endif /* !CONFIG_BUILD_PROTECTED || !__KERNEL__ */ |