mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-28 05:51:04 +00:00
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
|
|
}
|