Update for C++ compiler compatibility

Update flash_map_backend.h to be compatible with a C++ compiler

Signed-off-by: Andrés Sánchez Pascual <tito97_sp@hotmail.com>
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Andrés Sánchez Pascual 2022-08-23 13:53:53 +02:00 committed by Andrzej Puzdrowski
parent f4df58f347
commit 1595488a92
1 changed files with 8 additions and 0 deletions

View File

@ -26,6 +26,10 @@
#include <inttypes.h>
#ifdef __cplusplus
extern "C" {
#endif
/****************************************************************************
* Public Types
****************************************************************************/
@ -419,4 +423,8 @@ int flash_area_id_to_multi_image_slot(int image_index, int area_id);
int flash_area_id_from_image_offset(uint32_t offset);
#ifdef __cplusplus
}
#endif
#endif /* __BOOT_NUTTX_INCLUDE_FLASH_MAP_BACKEND_FLASH_MAP_BACKEND_H */