Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-12-16 22:53:15 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-12-16 22:53:15 +0300
commitd9c0758ab8d8bad091b3a7d501052e5ef8580bac (patch)
treed2d112937024252f5472836b5e0d89be54d91f93 /src/Networking
parent98e6610079f95f9372f75e039cb67b94a92d2dc7 (diff)
Fixed build errors and warnings
Diffstat (limited to 'src/Networking')
-rw-r--r--src/Networking/LwipEthernet/Lwip/src/core/memp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Networking/LwipEthernet/Lwip/src/core/memp.c b/src/Networking/LwipEthernet/Lwip/src/core/memp.c
index 2530b634..aabd78b7 100644
--- a/src/Networking/LwipEthernet/Lwip/src/core/memp.c
+++ b/src/Networking/LwipEthernet/Lwip/src/core/memp.c
@@ -77,7 +77,7 @@
#define LWIP_MEMPOOL(name,num,size,desc) LWIP_MEMPOOL_DECLARE(name,num,size,desc)
-#if SAME70 //dc
+#if defined(SAME70) && SAME70 //dc
# define LWIP_PBUF_MEMPOOL(name, num, payload, desc) __attribute__((section(".ram_nocache"))) LWIP_MEMPOOL(name, num, (LWIP_MEM_ALIGN_SIZE(sizeof(struct pbuf)) + LWIP_MEM_ALIGN_SIZE(payload)), desc)
#endif
@@ -85,7 +85,7 @@
const struct memp_desc *const memp_pools[MEMP_MAX] = {
#define LWIP_MEMPOOL(name,num,size,desc) &memp_ ## name,
-#if SAME70 //dc
+#if defined(SAME70) && SAME70 //dc
# undef LWIP_PBUF_MEMPOOL
#endif
#include "lwip/priv/memp_std.h"