Merged in antmerlino/nuttx/elf-cplusplus-guard (pull request #826)

include/nuttx/elf.h: Adds missing extern "C" __cplusplus guard.

Approved-by: GregoryN <gnutt@nuttx.org>
This commit is contained in:
Anthony Merlino 2019-02-19 15:24:25 +00:00 committed by GregoryN
parent e982488e6c
commit 840dab8c47

View File

@ -46,6 +46,11 @@
* Public Function Prototypes * Public Function Prototypes
****************************************************************************/ ****************************************************************************/
#if defined(__cplusplus)
extern "C"
{
#endif
/**************************************************************************** /****************************************************************************
* Name: up_checkarch * Name: up_checkarch
* *
@ -115,4 +120,8 @@ int up_relocateadd(FAR const Elf32_Rela *rel,
int up_init_exidx(Elf32_Addr address, Elf32_Word size); int up_init_exidx(Elf32_Addr address, Elf32_Word size);
#endif #endif
#if defined(__cplusplus)
}
#endif
#endif /* __INCLUDE_NUTTX_ELF_H */ #endif /* __INCLUDE_NUTTX_ELF_H */