mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-14 17:59:28 +08:00
17 lines
270 B
C
17 lines
270 B
C
|
void __main ()
|
||
|
{
|
||
|
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) ();
|
||
|
|
||
|
}
|
||
|
}
|