at_device_esp8266.c:608:62: error: invalid application of 'sizeof' to incomplete type 'struct rt_delayed_work'
workqueue.c
* 2017-02-27 Bernard fix the re-work issue.
* 2021-08-01 Meco Man remove rt_delayed_work_init()
* 2021-08-14 Jackistang add comments for function interface.
error: invalid application of 'sizeof' to incomplete type 'struct rt_delayed_work'
错误原因:sizeof失败,根因是找不到struct rt_delayed_work
结构体的定义。
查看workqueue.h及相关changelog可知:struct rt_delayed_work换成了struct rt_work.
按照新的名称全局替换下调用即可。
认同,我把
void rt_delayed_work_init(struct rt_work work, void (work_func)(struct rt_work *work,
也加回去了,这样做有点不放心,谢谢