From 67f8e352016347edfe5500e26a1ed9b22886105c Mon Sep 17 00:00:00 2001 From: Andrew Chong Date: Mon, 20 May 2019 13:22:46 +0800 Subject: [PATCH] This allows CPP application to use the functions from cc.h. --- features/lwipstack/lwip-sys/arch/cc.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/features/lwipstack/lwip-sys/arch/cc.h b/features/lwipstack/lwip-sys/arch/cc.h index 5d68b8e780..05c596a222 100644 --- a/features/lwipstack/lwip-sys/arch/cc.h +++ b/features/lwipstack/lwip-sys/arch/cc.h @@ -40,6 +40,9 @@ #include "mbedtls/md5.h" #endif +#ifdef __cplusplus +extern "C" { +#endif /* ARM/LPC17xx is little endian only */ #if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN) @@ -180,4 +183,8 @@ SET_MEMP_SECTION(memp_memory_PPP_PCB_base); #endif #endif +#ifdef __cplusplus +} +#endif + #endif /* __CC_H__ */