memp: also export memp_sizes[] if MEMP_USE_CUSTOM_POOLS==1

This commit is contained in:
goldsimon 2015-02-10 15:18:14 +01:00
parent ec68aaf43b
commit 338feef70e
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ static struct memp *memp_tab[MEMP_MAX];
#endif /* MEMP_MEM_MALLOC */
/** This array holds the element sizes of each pool. */
#if !MEM_USE_POOLS && !MEMP_MEM_MALLOC
#if !MEM_USE_POOLS && !MEMP_MEM_MALLOC && !MEMP_USE_CUSTOM_POOLS
static
#endif
const u16_t memp_sizes[MEMP_MAX] = {

View File

@ -75,9 +75,9 @@ typedef enum {
#define MEMP_POOL_LAST ((memp_t) MEMP_POOL_HELPER_LAST)
#endif /* MEM_USE_POOLS */
#if MEMP_MEM_MALLOC || MEM_USE_POOLS
#if MEMP_MEM_MALLOC || MEM_USE_POOLS || MEMP_USE_CUSTOM_POOLS
extern const u16_t memp_sizes[MEMP_MAX];
#endif /* MEMP_MEM_MALLOC || MEM_USE_POOLS */
#endif /* MEMP_MEM_MALLOC || MEM_USE_POOLS || MEMP_USE_CUSTOM_POOLS */
#if MEMP_MEM_MALLOC