Fixes compile failure if REENTRANT_SYSCALLS_PROVIDED and MISSING_SYSCALL_NAMES defined
[newlib-cygwin.git] / libgloss / mn10300 / crt1.c
blobdd0be3145de613df8ef289b7d3cd55eff0af05d9
1 void __main ()
3 static int initialized;
4 if (! initialized)
6 typedef void (*pfunc) ();
7 extern pfunc __ctors[];
8 extern pfunc __ctors_end[];
9 pfunc *p;
11 initialized = 1;
12 for (p = __ctors_end; p > __ctors; )
13 (*--p) ();