[compilers] Fix c/c++ compilation warnings and errors

This commit is contained in:
tyx
2022-04-02 16:21:45 +08:00
committed by guo
parent e896021b56
commit b80f581562
11 changed files with 68 additions and 3 deletions

View File

@@ -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 */