diff options
Diffstat (limited to 'nuttx/mm/mm_realloc.c')
-rw-r--r-- | nuttx/mm/mm_realloc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nuttx/mm/mm_realloc.c b/nuttx/mm/mm_realloc.c index 0c7346521..658ea1df1 100644 --- a/nuttx/mm/mm_realloc.c +++ b/nuttx/mm/mm_realloc.c @@ -1,7 +1,7 @@ /**************************************************************************** * mm/mm_realloc.c * - * Copyright (C) 2007, 2009, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009, 2013-2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -399,12 +399,9 @@ FAR void *mm_realloc(FAR struct mm_heap_s *heap, FAR void *oldmem, * ****************************************************************************/ -#if !defined(CONFIG_BUILD_PROTECTED) || !defined(__KERNEL__) - +#ifdef CONFIG_MM_USER_HEAP FAR void *realloc(FAR void *oldmem, size_t size) { return mm_realloc(&g_mmheap, oldmem, size); } - #endif - |