boardctl.h needs to be include-able from C++ files
This commit is contained in:
parent
f2c65a4c47
commit
37dd4e52a1
@ -265,6 +265,19 @@ struct boardioc_usbdev_ctrl_s
|
|||||||
};
|
};
|
||||||
#endif /* CONFIG_BOARDCTL_USBDEVCTRL */
|
#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
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -299,5 +312,10 @@ struct boardioc_usbdev_ctrl_s
|
|||||||
|
|
||||||
int boardctl(unsigned int cmd, uintptr_t arg);
|
int boardctl(unsigned int cmd, uintptr_t arg);
|
||||||
|
|
||||||
|
#undef EXTERN
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_LIB_BOARDCTL */
|
#endif /* CONFIG_LIB_BOARDCTL */
|
||||||
#endif /* __INCLUDE_SYS_BOARDCTL_H */
|
#endif /* __INCLUDE_SYS_BOARDCTL_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user