diff options
| author | Bernard Xiong <[email protected]> | 2015-04-24 11:42:40 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-04-24 11:48:25 +0800 |
| commit | 6459839f287996424dae870fd00fe499d8693530 (patch) | |
| tree | 1f8b769522578fb03f957c4941fd4b10dea68487 /components/drivers/include | |
| parent | 37aa44d4f256234bf5b231358bed0a82f899a1d1 (diff) | |
Add extern declaration for C++.
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/rtdevice.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index bb01da2d12..5d74ed6199 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -28,6 +28,10 @@ #include <rtthread.h> +#ifdef __cplusplus +extern "C" { +#endif + #define RT_DEVICE(device) ((rt_device_t)device) /* 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" #endif +#ifdef __cplusplus +} +#endif + #endif /* __RT_DEVICE_H__ */ |
