Commit 2e115ab4 authored by Alexandre Julliard's avatar Alexandre Julliard

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

This reverts commit f2a7405a. We now have separate entry points for msvcrt builds. Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f7230992
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "winbase.h" #include "winbase.h"
#include "winternl.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 ) static char **build_argv( const char *src, int *ret_argc )
{ {
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "winbase.h" #include "winbase.h"
#include "winuser.h" #include "winuser.h"
int __cdecl main( int argc, char *argv[] ) int main( int argc, char *argv[] )
{ {
STARTUPINFOA info; STARTUPINFOA info;
char *cmdline = GetCommandLineA(); char *cmdline = GetCommandLineA();
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include "winbase.h" #include "winbase.h"
#include "winternl.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 ) static WCHAR **build_argv( const WCHAR *src, int *ret_argc )
{ {
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
int WINAPI wWinMain(HINSTANCE,HINSTANCE,LPWSTR,int); int WINAPI wWinMain(HINSTANCE,HINSTANCE,LPWSTR,int);
int __cdecl wmain( int argc, WCHAR *argv[] ) int wmain( int argc, WCHAR *argv[] )
{ {
STARTUPINFOW info; STARTUPINFOW info;
WCHAR *cmdline = GetCommandLineW(); WCHAR *cmdline = GetCommandLineW();
......
...@@ -448,7 +448,7 @@ static WCHAR *convert_file_uri(IUri *uri) ...@@ -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 * Main entry point. This is a console application so we have a wmain() not a
* winmain(). * 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}; static const WCHAR nohomeW[] = {'-','n','o','h','o','m','e',0};
......
...@@ -664,7 +664,7 @@ static void restart_if_wow64(void) ...@@ -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; int retv = 0;
HANDLE hFile = INVALID_HANDLE_VALUE; HANDLE hFile = INVALID_HANDLE_VALUE;
......
...@@ -493,7 +493,7 @@ static void usage(void) ...@@ -493,7 +493,7 @@ static void usage(void)
/*********************************************************************** /***********************************************************************
* main * main
*/ */
int __cdecl main( int argc, char *argv[] ) int main( int argc, char *argv[] )
{ {
DWORD count; DWORD count;
HINSTANCE16 instance; HINSTANCE16 instance;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment