Skip to content

Commit 67f8e35

Browse files
committed
This allows CPP application to use the functions from cc.h.
1 parent 64575fe commit 67f8e35

File tree

1 file changed

+7
-0
lines changed
  • features/lwipstack/lwip-sys/arch

1 file changed

+7
-0
lines changed

features/lwipstack/lwip-sys/arch/cc.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
#include "mbedtls/md5.h"
4141
#endif
4242

43+
#ifdef __cplusplus
44+
extern "C" {
45+
#endif
4346

4447
/* ARM/LPC17xx is little endian only */
4548
#if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN)
@@ -180,4 +183,8 @@ SET_MEMP_SECTION(memp_memory_PPP_PCB_base);
180183
#endif
181184
#endif
182185

186+
#ifdef __cplusplus
187+
}
188+
#endif
189+
183190
#endif /* __CC_H__ */

0 commit comments

Comments
 (0)