110cd1ab38f48ae29f42b8838ef09b6e5b4cd8bd
[reactos.git] / lib / 3rdparty / mingw / mscmain.c
1 /**
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.
5 */
6
7 #include <windows.h>
8 #include <stdlib.h>
9
10 int _fltused;
11
12 void
13 _cdecl
14 _alloca_probe_16(void)
15 {
16 }
17
18 void
19 __do_global_dtors (void)
20 {
21
22 }
23
24 void
25 __do_global_ctors (void)
26 {
27
28 }
29
30 BOOL
31 WINAPI
32 _CRT_INIT0(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
33 {
34 return TRUE;
35 }
36
37 static int initialized = 0;
38
39 void
40 __main (void)
41 {
42 if (!initialized)
43 {
44 initialized = 1;
45 __do_global_ctors ();
46 }
47 }
48
49