2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
16 #pragma comment(linker, "/alternatename:__RTC_Initialize=__RTC_NoInitialize")
17 #elif defined(_M_IA64) || defined(_M_AMD64) || defined(_M_ARM)
18 #pragma comment(linker, "/alternatename:_RTC_Initialize=_RTC_NoInitialize")
20 #error Unsupported platform
24 * Initializer / constructor handling
25 * see http://msdn.microsoft.com/en-us/library/bb918180.aspx
26 * Destructors are registered from the initializers using atexit()
29 extern _PVFV __xi_a
[];
30 extern _PVFV __xi_z
[];
31 extern _PVFV __xc_a
[];
32 extern _PVFV __xc_z
[];
41 for (current
= start
; current
< end
; current
++)
48 void _pei386_runtime_relocator(void)
52 int __mingw_init_ehandler(void)
59 __do_global_ctors(void)
61 __do_xtors(__xi_a
, __xi_z
);
62 __do_xtors(__xc_a
, __xc_z
);
67 _CRT_INIT0(HINSTANCE hinstDLL
, DWORD fdwReason
, LPVOID lpReserved
)
78 const wchar_t *module
,
79 const wchar_t *format
,
82 /* FIXME: better failure routine */
90 _RTC_NoInitialize(void)
92 /* Do nothing, if RunTmChk.lib is not pulled in */
104 return &Catch_RTC_Failure
;
107 static int initialized
= 0;
118 __do_global_ctors ();