From f4cf203defa3cb71727cd76d8eea1df877cab8eb Mon Sep 17 00:00:00 2001 From: armink Date: Mon, 25 May 2015 10:48:58 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E3=80=90=E5=A2=9E=E5=8A=A0=E3=80=91C?= =?UTF-8?q?++=E7=BC=96=E8=AF=91=E5=99=A8=E7=9A=84=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: armink --- easyflash/inc/flash.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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_ */