mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +00:00
[compilers] Fix c/c++ compilation warnings and errors
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user