nuttx:board.h add extern C under cpp
This commit is contained in:
parent
07b4b219cd
commit
34b21a4990
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user