Add C decls to TI platform headers

h/t @kzyapkov, cesanta/mongoose#649

PUBLISHED_FROM=c21158c9476b9a4abd281ec99c7fa62ea5e708b8
This commit is contained in:
Deomid Ryabkov 2016-04-28 11:58:26 +02:00 committed by Marko Mikulicic
parent 6b51ec3371
commit 38752f1327

View File

@ -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_ */
/*