Commit 38752f13 authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Marko Mikulicic

Add C decls to TI platform headers

h/t @kzyapkov, cesanta/mongoose#649

PUBLISHED_FROM=c21158c9476b9a4abd281ec99c7fa62ea5e708b8
parent 6b51ec33
...@@ -443,6 +443,10 @@ typedef struct stat cs_stat_t; ...@@ -443,6 +443,10 @@ typedef struct stat cs_stat_t;
/* Some functions we implement for Mongoose. */ /* Some functions we implement for Mongoose. */
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __TI_COMPILER_VERSION__ #ifdef __TI_COMPILER_VERSION__
struct SlTimeval_t; struct SlTimeval_t;
#define timeval SlTimeval_t #define timeval SlTimeval_t
...@@ -510,6 +514,10 @@ struct dirent *readdir(DIR *dir); ...@@ -510,6 +514,10 @@ struct dirent *readdir(DIR *dir);
#define MG_FS_SLFS #define MG_FS_SLFS
#endif #endif
#ifdef __cplusplus
}
#endif
#endif /* CS_PLATFORM == CS_P_CC3200 */ #endif /* CS_PLATFORM == CS_P_CC3200 */
#endif /* CS_COMMON_PLATFORMS_PLATFORM_CC3200_H_ */ #endif /* CS_COMMON_PLATFORMS_PLATFORM_CC3200_H_ */
/* /*
...@@ -557,6 +565,10 @@ typedef struct stat cs_stat_t; ...@@ -557,6 +565,10 @@ typedef struct stat cs_stat_t;
/* Some functions we implement for Mongoose. */ /* Some functions we implement for Mongoose. */
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __TI_COMPILER_VERSION__ #ifdef __TI_COMPILER_VERSION__
struct SlTimeval_t; struct SlTimeval_t;
#define timeval SlTimeval_t #define timeval SlTimeval_t
...@@ -604,6 +616,10 @@ int _stat(const char *pathname, struct stat *st); ...@@ -604,6 +616,10 @@ int _stat(const char *pathname, struct stat *st);
#endif /* __TI_COMPILER_VERSION__ */ #endif /* __TI_COMPILER_VERSION__ */
#ifdef __cplusplus
}
#endif
#endif /* CS_PLATFORM == CS_P_MSP432 */ #endif /* CS_PLATFORM == CS_P_MSP432 */
#endif /* CS_COMMON_PLATFORMS_PLATFORM_MSP432_H_ */ #endif /* CS_COMMON_PLATFORMS_PLATFORM_MSP432_H_ */
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment