Add extern declaration for C++.
This commit is contained in:
parent
3e24db1f8e
commit
20c06ccb00
|
@ -28,6 +28,10 @@
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#define RT_DEVICE(device) ((rt_device_t)device)
|
#define RT_DEVICE(device) ((rt_device_t)device)
|
||||||
|
|
||||||
/* completion flag */
|
/* completion flag */
|
||||||
|
@ -362,5 +366,9 @@ rt_inline void rt_work_init(struct rt_work* work, void (*work_func)(struct rt_wo
|
||||||
#include "drivers/pin.h"
|
#include "drivers/pin.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __RT_DEVICE_H__ */
|
#endif /* __RT_DEVICE_H__ */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue