[MINGW]
[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 __do_global_dtors (void)
14 {
15
16 }
17
18 void
19 __do_global_ctors (void)
20 {
21
22 }
23
24 BOOL
25 WINAPI
26 _CRT_INIT0(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
27 {
28 return TRUE;
29 }
30
31 static int initialized = 0;
32
33 void
34 __main (void)
35 {
36 if (!initialized)
37 {
38 initialized = 1;
39 __do_global_ctors ();
40 }
41 }
42
43