Retro68/gcc/newlib/libc/sys/h8300hms/crt1.c
2012-03-27 01:51:53 +02:00

19 lines
293 B
C

void __main ()
{
#ifndef __ELF__
static int initialized;
if (! initialized)
{
typedef void (*pfunc) ();
extern pfunc __ctors[];
extern pfunc __ctors_end[];
pfunc *p;
initialized = 1;
for (p = __ctors_end; p > __ctors; )
(*--p) ();
}
#endif
}