blob: ab099c96329d4e8c26b0b9a233ce11ae1a956fac [file] [log] [blame]
Kai Tietzfb59d4e2009-01-27 10:33:31 +00001/**
2 * This file has no copyright assigned and is placed in the Public Domain.
Rafaël Carré8a67ab42012-06-28 15:40:59 +00003 * This file is part of the mingw-w64 runtime package.
Kai Tietzfa0cfe32010-01-15 20:02:21 +00004 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
Kai Tietzfb59d4e2009-01-27 10:33:31 +00005 */
Kai Tietz518dd332007-08-10 09:54:15 +00006#include <windows.h>
7
Kai Tietze87386c2009-08-07 09:15:15 +00008/* Do the UNICODE prototyping of WinMain. Be aware that in winbase.h WinMain is a macro
9 defined to wWinMain. */
Kai Tietz22002262009-08-09 09:32:24 +000010int WINAPI wWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPWSTR lpCmdLine,int nShowCmd);
Kai Tietzc24294c2008-04-29 19:25:57 +000011
Kai Tietzad011622009-06-19 12:37:39 +000012extern HINSTANCE __mingw_winmain_hInstance;
13extern LPWSTR __mingw_winmain_lpCmdLine;
14extern DWORD __mingw_winmain_nShowCmd;
15
Kai Tietz94772122009-08-23 07:29:47 +000016int wmain (int, wchar_t **, wchar_t **);
Kai Tietz699a2e72009-08-23 07:19:19 +000017
Kai Tietzad011622009-06-19 12:37:39 +000018/*ARGSUSED*/
Ozkan Sezerb1ea8d72010-07-19 09:36:16 +000019int wmain (int __UNUSED_PARAM(flags),
20 wchar_t ** __UNUSED_PARAM(cmdline),
21 wchar_t ** __UNUSED_PARAM(inst))
Kai Tietz518dd332007-08-10 09:54:15 +000022{
Kai Tietz22002262009-08-09 09:32:24 +000023 return (int) wWinMain (__mingw_winmain_hInstance, NULL,
Kai Tietzad011622009-06-19 12:37:39 +000024 __mingw_winmain_lpCmdLine, __mingw_winmain_nShowCmd);
Kai Tietz518dd332007-08-10 09:54:15 +000025}