mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-27 19:17:18 +08:00
Cygwin: drop __stdcall usage
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
7718cb70d4
commit
7073ef4e8f
@ -382,10 +382,10 @@ wsock_init (struct func_info *func)
|
|||||||
|
|
||||||
if (!wsock_started)
|
if (!wsock_started)
|
||||||
{
|
{
|
||||||
int __stdcall (*wsastartup) (int, WSADATA *);
|
int (*wsastartup) (int, WSADATA *);
|
||||||
|
|
||||||
/* Don't use autoload to load WSAStartup to eliminate recursion. */
|
/* Don't use autoload to load WSAStartup to eliminate recursion. */
|
||||||
wsastartup = (int __stdcall (*)(int, WSADATA *))
|
wsastartup = (int (*)(int, WSADATA *))
|
||||||
GetProcAddress ((HMODULE) (dll->handle), "WSAStartup");
|
GetProcAddress ((HMODULE) (dll->handle), "WSAStartup");
|
||||||
if (wsastartup)
|
if (wsastartup)
|
||||||
{
|
{
|
||||||
|
@ -1006,7 +1006,7 @@ __cygwin_exit_return: \n\
|
|||||||
");
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void __stdcall
|
extern "C" void
|
||||||
_dll_crt0 ()
|
_dll_crt0 ()
|
||||||
{
|
{
|
||||||
/* Starting with Windows 10 rel 1511, the main stack of an application is
|
/* Starting with Windows 10 rel 1511, the main stack of an application is
|
||||||
|
@ -9,7 +9,7 @@ details. */
|
|||||||
#undef __INSIDE_CYGWIN__
|
#undef __INSIDE_CYGWIN__
|
||||||
#include "crt0.h"
|
#include "crt0.h"
|
||||||
|
|
||||||
extern void __stdcall _dll_crt0 ()
|
extern void _dll_crt0 ()
|
||||||
__declspec (dllimport) __attribute__ ((noreturn));
|
__declspec (dllimport) __attribute__ ((noreturn));
|
||||||
|
|
||||||
/* for main module */
|
/* for main module */
|
||||||
|
@ -147,7 +147,7 @@ extern int cygserver_running;
|
|||||||
class per_process;
|
class per_process;
|
||||||
/* cygwin .dll initialization */
|
/* cygwin .dll initialization */
|
||||||
void dll_crt0 (per_process *) __asm__ (_SYMSTR (dll_crt0__FP11per_process));
|
void dll_crt0 (per_process *) __asm__ (_SYMSTR (dll_crt0__FP11per_process));
|
||||||
extern "C" void __stdcall _dll_crt0 ();
|
extern "C" void _dll_crt0 ();
|
||||||
void dll_crt0_1 (void *);
|
void dll_crt0_1 (void *);
|
||||||
void dll_dllcrt0_1 (void *);
|
void dll_dllcrt0_1 (void *);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user