This allows CPP application to use the functions from cc.h.

pull/10615/head
Andrew Chong 2019-05-20 13:22:46 +08:00
parent 64575fe586
commit 67f8e35201
1 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,9 @@
#include "mbedtls/md5.h" #include "mbedtls/md5.h"
#endif #endif
#ifdef __cplusplus
extern "C" {
#endif
/* ARM/LPC17xx is little endian only */ /* ARM/LPC17xx is little endian only */
#if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN) #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
#endif #endif
#ifdef __cplusplus
}
#endif
#endif /* __CC_H__ */ #endif /* __CC_H__ */