summaryrefslogtreecommitdiff
path: root/components/drivers/include/ipc/workqueue.h
diff options
context:
space:
mode:
authortyx <[email protected]>2022-04-02 16:21:45 +0800
committerguo <[email protected]>2022-04-06 10:27:38 +0800
commitb80f5815621a57b16671b2c5d64a279835654b99 (patch)
treeb66473698e3e3a7ddea8d1a22ba2c3717bec4244 /components/drivers/include/ipc/workqueue.h
parente896021b56c01f5abad4ebad5017cb0dc40739b0 (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.h8
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 */