Merge from amd64-branch:
[reactos.git] / reactos / lib / 3rdparty / mingw / 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 within this package.
5 */
6
7 #include <windows.h>
8
9 extern void __main(void);
10
11 int WINAPI wWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPWSTR lpCmdLine,int nShowCmd);
12
13 int wmain (int flags, wchar_t **cmdline, wchar_t **inst)
14 {
15 return (int) wWinMain ((HINSTANCE) inst, NULL, (LPWSTR) cmdline,(DWORD) flags);
16 }