mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-04 11:38:11 +00:00
fixed bogus compiler error for MEM_USE_POOLS==1 and MEMP_USE_CUSTOM_POOLS==0
This commit is contained in:
parent
80be1a6bf8
commit
4f5ff37c5d
@ -97,7 +97,7 @@ struct memp {
|
|||||||
};
|
};
|
||||||
#endif /* !MEMP_MEM_MALLOC || MEMP_OVERFLOW_CHECK */
|
#endif /* !MEMP_MEM_MALLOC || MEMP_OVERFLOW_CHECK */
|
||||||
|
|
||||||
#if MEM_USE_POOLS
|
#if MEM_USE_POOLS && MEMP_USE_CUSTOM_POOLS
|
||||||
/* Use a helper type to get the start and end of the user "memory pools" for mem_malloc */
|
/* Use a helper type to get the start and end of the user "memory pools" for mem_malloc */
|
||||||
typedef enum {
|
typedef enum {
|
||||||
/* Get the first (via:
|
/* Get the first (via:
|
||||||
@ -124,7 +124,7 @@ typedef enum {
|
|||||||
We use this helper type and these defines so we can avoid using const memp_t values */
|
We use this helper type and these defines so we can avoid using const memp_t values */
|
||||||
#define MEMP_POOL_FIRST ((memp_t) MEMP_POOL_HELPER_FIRST)
|
#define MEMP_POOL_FIRST ((memp_t) MEMP_POOL_HELPER_FIRST)
|
||||||
#define MEMP_POOL_LAST ((memp_t) MEMP_POOL_HELPER_LAST)
|
#define MEMP_POOL_LAST ((memp_t) MEMP_POOL_HELPER_LAST)
|
||||||
#endif /* MEM_USE_POOLS */
|
#endif /* MEM_USE_POOLS && MEMP_USE_CUSTOM_POOLS */
|
||||||
|
|
||||||
/** Memory pool descriptor */
|
/** Memory pool descriptor */
|
||||||
struct memp_desc {
|
struct memp_desc {
|
||||||
|
Loading…
Reference in New Issue
Block a user