forked from nuttx/nuttx-update
boardctl.h needs to be include-able from C++ files
This commit is contained in:
parent
f2c65a4c47
commit
37dd4e52a1
1 changed files with 18 additions and 0 deletions
|
@ -265,6 +265,19 @@ struct boardioc_usbdev_ctrl_s
|
|||
};
|
||||
#endif /* CONFIG_BOARDCTL_USBDEVCTRL */
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
@ -299,5 +312,10 @@ struct boardioc_usbdev_ctrl_s
|
|||
|
||||
int boardctl(unsigned int cmd, uintptr_t arg);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_LIB_BOARDCTL */
|
||||
#endif /* __INCLUDE_SYS_BOARDCTL_H */
|
||||
|
|
Loading…
Reference in a new issue