[CRT:STARTUP] Fix a Clang-Cl warning about GS_ExceptionPointers
[reactos.git] / sdk / lib / crt / startup / crt0_w.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 #include <stdarg.h>
7 #include <windef.h>
8
9 /* Do the UNICODE prototyping of WinMain. Be aware that in winbase.h WinMain is a macro
10 defined to wWinMain. */
11 int WINAPI wWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPWSTR lpCmdLine,int nShowCmd);
12
13 extern HINSTANCE __mingw_winmain_hInstance;
14 extern LPWSTR __mingw_winmain_lpCmdLine;
15 extern DWORD __mingw_winmain_nShowCmd;
16
17 int __cdecl wmain (int, wchar_t **, wchar_t **);
18
19 /*ARGSUSED*/
20 int __cdecl wmain (int __UNUSED_PARAM(flags),
21 wchar_t ** __UNUSED_PARAM(cmdline),
22 wchar_t ** __UNUSED_PARAM(inst))
23 {
24 return (int) wWinMain (__mingw_winmain_hInstance, NULL,
25 __mingw_winmain_lpCmdLine, __mingw_winmain_nShowCmd);
26 }