diff --git a/include/dfu/mcuboot.h b/include/dfu/mcuboot.h index 0d0f00ba4b2..5aee627f76c 100644 --- a/include/dfu/mcuboot.h +++ b/include/dfu/mcuboot.h @@ -13,6 +13,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /** Attempt to boot the contents of slot 0. */ #define BOOT_SWAP_TYPE_NONE 1 @@ -177,4 +181,8 @@ int boot_request_upgrade(int permanent); */ int boot_erase_img_bank(u8_t area_id); +#ifdef __cplusplus +} +#endif + #endif /* ZEPHYR_INCLUDE_DFU_MCUBOOT_H_ */