G-CAMS-DATU/rt-thread/libcpu/sim/posix/startup.c

14 lines
218 B
C
Raw Normal View History

2024-05-13 08:08:47 +00:00
#include <rtthread.h>
#if defined(__GNUC__)
int rtthread_startup(void);
static int start(void)
{
rtthread_startup();
return 0;
}
__attribute__((section(".init_array"))) typeof(start) *__init = start;
#endif