public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: drop __stdcall usage Date: Thu, 4 Aug 2022 18:57:05 +0000 (GMT) [thread overview] Message-ID: <20220804185705.A8A7538582AE@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7073ef4e8ff3c1024ca88d4ef8e5b17f4595b644 commit 7073ef4e8ff3c1024ca88d4ef8e5b17f4595b644 Author: Corinna Vinschen <corinna@vinschen.de> Date: Thu Aug 4 20:53:59 2022 +0200 Cygwin: drop __stdcall usage Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- winsup/cygwin/autoload.cc | 4 ++-- winsup/cygwin/dcrt0.cc | 2 +- winsup/cygwin/lib/cygwin_crt0.c | 2 +- winsup/cygwin/winsup.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index ef0465d4e..cdf6e75de 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -382,10 +382,10 @@ wsock_init (struct func_info *func) if (!wsock_started) { - int __stdcall (*wsastartup) (int, WSADATA *); + int (*wsastartup) (int, WSADATA *); /* Don't use autoload to load WSAStartup to eliminate recursion. */ - wsastartup = (int __stdcall (*)(int, WSADATA *)) + wsastartup = (int (*)(int, WSADATA *)) GetProcAddress ((HMODULE) (dll->handle), "WSAStartup"); if (wsastartup) { diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 9162f84e7..263bcc1a4 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -1006,7 +1006,7 @@ __cygwin_exit_return: \n\ "); } -extern "C" void __stdcall +extern "C" void _dll_crt0 () { /* Starting with Windows 10 rel 1511, the main stack of an application is diff --git a/winsup/cygwin/lib/cygwin_crt0.c b/winsup/cygwin/lib/cygwin_crt0.c index 776e7e8de..7020a639d 100644 --- a/winsup/cygwin/lib/cygwin_crt0.c +++ b/winsup/cygwin/lib/cygwin_crt0.c @@ -9,7 +9,7 @@ details. */ #undef __INSIDE_CYGWIN__ #include "crt0.h" -extern void __stdcall _dll_crt0 () +extern void _dll_crt0 () __declspec (dllimport) __attribute__ ((noreturn)); /* for main module */ diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 4bcbfde64..43dfbf46f 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -147,7 +147,7 @@ extern int cygserver_running; class per_process; /* cygwin .dll initialization */ 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_dllcrt0_1 (void *);
reply other threads:[~2022-08-04 18:57 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220804185705.A8A7538582AE@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).