diff --git a/easyflash/inc/flash.h b/easyflash/inc/flash.h index 63e2da2..b24c858 100644 --- a/easyflash/inc/flash.h +++ b/easyflash/inc/flash.h @@ -28,6 +28,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* using ENV function */ #define FLASH_USING_ENV /* using IAP function */ @@ -52,7 +56,7 @@ if (!(EXPR)) \ while (1); \ } /* EasyFlash software version number */ -#define FLASH_SW_VERSION "1.05.16" +#define FLASH_SW_VERSION "1.05.25" typedef struct _flash_env{ char *key; @@ -103,4 +107,8 @@ void flash_log_debug(const char *file, const long line, const char *format, ...) void flash_log_info(const char *format, ...); void flash_print(const char *format, ...); +#ifdef __cplusplus +} +#endif + #endif /* FLASH_H_ */