diff options
| author | tyx <[email protected]> | 2022-04-02 16:21:45 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2022-04-06 10:27:38 +0800 |
| commit | b80f5815621a57b16671b2c5d64a279835654b99 (patch) | |
| tree | b66473698e3e3a7ddea8d1a22ba2c3717bec4244 /components/drivers/include/ipc/workqueue.h | |
| parent | e896021b56c01f5abad4ebad5017cb0dc40739b0 (diff) | |
[compilers] Fix c/c++ compilation warnings and errors
Diffstat (limited to 'components/drivers/include/ipc/workqueue.h')
| -rw-r--r-- | components/drivers/include/ipc/workqueue.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/components/drivers/include/ipc/workqueue.h b/components/drivers/include/ipc/workqueue.h index 7fc7650d74..acb8307bf7 100644 --- a/components/drivers/include/ipc/workqueue.h +++ b/components/drivers/include/ipc/workqueue.h @@ -13,6 +13,10 @@ #include <rtthread.h> +#ifdef __cplusplus +extern "C" { +#endif + enum { RT_WORK_STATE_PENDING = 0x0001, /* Work item pending state */ @@ -70,7 +74,9 @@ rt_err_t rt_work_urgent(struct rt_work *work); rt_err_t rt_work_cancel(struct rt_work *work); #endif /* RT_USING_SYSTEM_WORKQUEUE */ - +#ifdef __cplusplus +} +#endif #endif /* RT_USING_HEAP */ |
