Kai Tietz | fb59d4e | 2009-01-27 10:33:31 +0000 | [diff] [blame] | 1 | /** |
| 2 | * This file has no copyright assigned and is placed in the Public Domain. |
Rafaël Carré | 8a67ab4 | 2012-06-28 15:40:59 +0000 | [diff] [blame^] | 3 | * This file is part of the mingw-w64 runtime package. |
Kai Tietz | fa0cfe3 | 2010-01-15 20:02:21 +0000 | [diff] [blame] | 4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package. |
Kai Tietz | fb59d4e | 2009-01-27 10:33:31 +0000 | [diff] [blame] | 5 | */ |
Kai Tietz | 518dd33 | 2007-08-10 09:54:15 +0000 | [diff] [blame] | 6 | #include <windows.h> |
| 7 | |
Kai Tietz | e87386c | 2009-08-07 09:15:15 +0000 | [diff] [blame] | 8 | /* Do the UNICODE prototyping of WinMain. Be aware that in winbase.h WinMain is a macro |
| 9 | defined to wWinMain. */ |
Kai Tietz | 2200226 | 2009-08-09 09:32:24 +0000 | [diff] [blame] | 10 | int WINAPI wWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPWSTR lpCmdLine,int nShowCmd); |
Kai Tietz | c24294c | 2008-04-29 19:25:57 +0000 | [diff] [blame] | 11 | |
Kai Tietz | ad01162 | 2009-06-19 12:37:39 +0000 | [diff] [blame] | 12 | extern HINSTANCE __mingw_winmain_hInstance; |
| 13 | extern LPWSTR __mingw_winmain_lpCmdLine; |
| 14 | extern DWORD __mingw_winmain_nShowCmd; |
| 15 | |
Kai Tietz | 9477212 | 2009-08-23 07:29:47 +0000 | [diff] [blame] | 16 | int wmain (int, wchar_t **, wchar_t **); |
Kai Tietz | 699a2e7 | 2009-08-23 07:19:19 +0000 | [diff] [blame] | 17 | |
Kai Tietz | ad01162 | 2009-06-19 12:37:39 +0000 | [diff] [blame] | 18 | /*ARGSUSED*/ |
Ozkan Sezer | b1ea8d7 | 2010-07-19 09:36:16 +0000 | [diff] [blame] | 19 | int wmain (int __UNUSED_PARAM(flags), |
| 20 | wchar_t ** __UNUSED_PARAM(cmdline), |
| 21 | wchar_t ** __UNUSED_PARAM(inst)) |
Kai Tietz | 518dd33 | 2007-08-10 09:54:15 +0000 | [diff] [blame] | 22 | { |
Kai Tietz | 2200226 | 2009-08-09 09:32:24 +0000 | [diff] [blame] | 23 | return (int) wWinMain (__mingw_winmain_hInstance, NULL, |
Kai Tietz | ad01162 | 2009-06-19 12:37:39 +0000 | [diff] [blame] | 24 | __mingw_winmain_lpCmdLine, __mingw_winmain_nShowCmd); |
Kai Tietz | 518dd33 | 2007-08-10 09:54:15 +0000 | [diff] [blame] | 25 | } |