1
0
Fork 0
forked from nuttx/nuttx-update

boardctl.h needs to be include-able from C++ files

This commit is contained in:
Gregory Nutt 2016-06-05 12:13:56 -06:00
parent f2c65a4c47
commit 37dd4e52a1

View file

@ -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 */