From 9e525c7475905dd60ccbe03b48d606db7dce2a21 Mon Sep 17 00:00:00 2001 From: Kai <60053077+kaidegit@users.noreply.github.com> Date: Tue, 29 Aug 2023 13:43:57 +0800 Subject: [PATCH] add extern c if cpp --- easyflash/plugins/types/ef_types.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/easyflash/plugins/types/ef_types.h b/easyflash/plugins/types/ef_types.h index f861898..2dff79a 100644 --- a/easyflash/plugins/types/ef_types.h +++ b/easyflash/plugins/types/ef_types.h @@ -33,6 +33,10 @@ #include #include "struct2json\inc\s2j.h" +#ifdef __cplusplus +extern "C" { +#endif + /* EasyFlash types plugin's software version number */ #define EF_TYPES_SW_VERSION "0.11.03" @@ -73,4 +77,8 @@ EfErrCode ef_set_double_array(const char *key, double *value, size_t len); EfErrCode ef_set_string_array(const char *key, char **value, size_t len); EfErrCode ef_set_struct(const char *key, void *value, ef_types_set_cb set_cb); +#ifdef __cplusplus +} +#endif + #endif /* EF_TYPES_H_ */