Revert "winecrt0: Make the main() and wmain() entry points cdecl."

This reverts commit f2a7405a09.
We now have separate entry points for msvcrt builds.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-12-04 10:31:11 +01:00
parent f7230992cc
commit 2e115ab442
7 changed files with 7 additions and 7 deletions

View File

@ -27,7 +27,7 @@
#include "winbase.h"
#include "winternl.h"
extern int __cdecl main( int argc, char *argv[] );
extern int main( int argc, char *argv[] );
static char **build_argv( const char *src, int *ret_argc )
{

View File

@ -27,7 +27,7 @@
#include "winbase.h"
#include "winuser.h"
int __cdecl main( int argc, char *argv[] )
int main( int argc, char *argv[] )
{
STARTUPINFOA info;
char *cmdline = GetCommandLineA();

View File

@ -27,7 +27,7 @@
#include "winbase.h"
#include "winternl.h"
extern int __cdecl wmain( int argc, WCHAR *argv[] );
extern int wmain( int argc, WCHAR *argv[] );
static WCHAR **build_argv( const WCHAR *src, int *ret_argc )
{

View File

@ -29,7 +29,7 @@
int WINAPI wWinMain(HINSTANCE,HINSTANCE,LPWSTR,int);
int __cdecl wmain( int argc, WCHAR *argv[] )
int wmain( int argc, WCHAR *argv[] )
{
STARTUPINFOW info;
WCHAR *cmdline = GetCommandLineW();

View File

@ -448,7 +448,7 @@ static WCHAR *convert_file_uri(IUri *uri)
* Main entry point. This is a console application so we have a wmain() not a
* winmain().
*/
int __cdecl wmain(int argc, WCHAR *argv[])
int wmain(int argc, WCHAR *argv[])
{
static const WCHAR nohomeW[] = {'-','n','o','h','o','m','e',0};

View File

@ -664,7 +664,7 @@ static void restart_if_wow64(void)
}
}
int __cdecl main(int argc, char** argv)
int main(int argc, char** argv)
{
int retv = 0;
HANDLE hFile = INVALID_HANDLE_VALUE;

View File

@ -493,7 +493,7 @@ static void usage(void)
/***********************************************************************
* main
*/
int __cdecl main( int argc, char *argv[] )
int main( int argc, char *argv[] )
{
DWORD count;
HINSTANCE16 instance;