mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 03:19:54 +08:00
1ae900d62f
* libc/sys/h8300hms/crt1.c (__main): Don't reference __ctors / __ctors_end. * libc/sys/h8300hms/syscalls.c: Include errno.h. (_unlink): New stub function.
19 lines
293 B
C
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
|
|
}
|