nuttx:board.h add extern C under cpp

This commit is contained in:
David Sidrane 2020-08-25 03:19:50 -07:00 committed by Xiang Xiao
parent 07b4b219cd
commit 34b21a4990

View File

@ -120,6 +120,14 @@
*
****************************************************************************/
#ifdef __cplusplus
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
/****************************************************************************
* Name: board_early_initialize
*
@ -715,4 +723,9 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
void board_init_rngseed(void);
#endif
#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif /* __INCLUDE_NUTTX_BOARD_H */