~mingw-w64/mingw-w64/experimental

« back to all changes in this revision

Viewing changes to ros-privexp/mingw-w64-crt/crt/crt0_w.c

  • Committer: NightStrike
  • Date: 2010-08-11 22:20:57 UTC
  • Revision ID: svn-v4:4407c894-4637-0410-b4f5-ada5f102cad1:experimental:3266
Branch for adding option for supporting ros

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 <windows.h>
 
7
 
 
8
/* Do the UNICODE prototyping of WinMain.  Be aware that in winbase.h WinMain is a macro
 
9
   defined to wWinMain.  */
 
10
int WINAPI wWinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPWSTR lpCmdLine,int nShowCmd);
 
11
 
 
12
extern HINSTANCE __mingw_winmain_hInstance;
 
13
extern LPWSTR __mingw_winmain_lpCmdLine;
 
14
extern DWORD __mingw_winmain_nShowCmd;
 
15
 
 
16
int wmain (int, wchar_t **, wchar_t **);
 
17
 
 
18
/*ARGSUSED*/
 
19
int wmain (int        __UNUSED_PARAM(flags),
 
20
           wchar_t ** __UNUSED_PARAM(cmdline),
 
21
           wchar_t ** __UNUSED_PARAM(inst))
 
22
{
 
23
  return (int) wWinMain (__mingw_winmain_hInstance, NULL,
 
24
                        __mingw_winmain_lpCmdLine, __mingw_winmain_nShowCmd);
 
25
}