From d95ab511d00b89703504d1cea8b97fb3d895b0a4 Mon Sep 17 00:00:00 2001 From: Ajay Bhargav Date: Wed, 10 Aug 2016 19:19:23 +0530 Subject: [PATCH] netif:ppp: fix mempool build issues when PPP is enabled During documentation updated LWIP_MEMPOOL_PROTOTYPE was moved inside "#if MEMP_MEM_MALLOC" which cause ppp build to break. This patch fix that issue. ref commit-id: 2f950a7dcc3cc48852276d5ca03522cfe60ac99f Signed-off-by: Ajay Bhargav --- src/include/lwip/memp.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/include/lwip/memp.h b/src/include/lwip/memp.h index 8a555c89..68fcd991 100644 --- a/src/include/lwip/memp.h +++ b/src/include/lwip/memp.h @@ -58,6 +58,12 @@ typedef enum { extern const struct memp_desc* const memp_pools[MEMP_MAX]; +/** + * @ingroup mempool + * Declare prototype for private memory pool if it is used in multiple files + */ +#define LWIP_MEMPOOL_PROTOTYPE(name) extern const struct memp_desc memp_ ## name + #if MEMP_MEM_MALLOC #define LWIP_MEMPOOL_DECLARE(name,num,size,desc) \ @@ -70,12 +76,6 @@ extern const struct memp_desc* const memp_pools[MEMP_MAX]; #else /* MEMP_MEM_MALLOC */ -/** - * @ingroup mempool - * Declare prototype for private memory pool if it is used in multiple files - */ -#define LWIP_MEMPOOL_PROTOTYPE(name) extern const struct memp_desc memp_ ## name - /** * @ingroup mempool * Declare a private memory pool