[SHELL32]
[reactos.git] / reactos / lib / sdk / crt / startup / 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 int __mingw_init_ehandler (void)
13 {
14 /* Nothing to do */
15 return 1;
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