From 38752f13278de9b63f21bb87a5f666fc378b018b Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Thu, 28 Apr 2016 11:58:26 +0200 Subject: [PATCH] Add C decls to TI platform headers h/t @kzyapkov, cesanta/mongoose#649 PUBLISHED_FROM=c21158c9476b9a4abd281ec99c7fa62ea5e708b8 --- mongoose.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mongoose.h b/mongoose.h index e92be6a8..8d8a6e02 100644 --- a/mongoose.h +++ b/mongoose.h @@ -443,6 +443,10 @@ typedef struct stat cs_stat_t; /* Some functions we implement for Mongoose. */ +#ifdef __cplusplus +extern "C" { +#endif + #ifdef __TI_COMPILER_VERSION__ struct SlTimeval_t; #define timeval SlTimeval_t @@ -510,6 +514,10 @@ struct dirent *readdir(DIR *dir); #define MG_FS_SLFS #endif +#ifdef __cplusplus +} +#endif + #endif /* CS_PLATFORM == CS_P_CC3200 */ #endif /* CS_COMMON_PLATFORMS_PLATFORM_CC3200_H_ */ /* @@ -557,6 +565,10 @@ typedef struct stat cs_stat_t; /* Some functions we implement for Mongoose. */ +#ifdef __cplusplus +extern "C" { +#endif + #ifdef __TI_COMPILER_VERSION__ struct SlTimeval_t; #define timeval SlTimeval_t @@ -604,6 +616,10 @@ int _stat(const char *pathname, struct stat *st); #endif /* __TI_COMPILER_VERSION__ */ +#ifdef __cplusplus +} +#endif + #endif /* CS_PLATFORM == CS_P_MSP432 */ #endif /* CS_COMMON_PLATFORMS_PLATFORM_MSP432_H_ */ /*