From 30c5411d0717483a9ad892f6f0a2f92a1ffd7c84 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Mon, 6 Jun 2022 12:00:45 -0400 Subject: Cygwin: remove most occurrences of __stdcall and __cdecl These have no effect on x86_64. Retain a few occurrences of __cdecl in files imported from other sources. Also retain all occurrences of WINAPI, even though the latter is simply a macro that expands to __stdcall. Most of these occurrences are associated with Windows API functions, and removing them might make the code confusing instead of simpler. --- winsup/cygwin/resource.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/resource.cc') diff --git a/winsup/cygwin/resource.cc b/winsup/cygwin/resource.cc index 21e85bd18..aafc2b0b1 100644 --- a/winsup/cygwin/resource.cc +++ b/winsup/cygwin/resource.cc @@ -37,7 +37,7 @@ add_timeval (struct timeval *tv1, struct timeval *tv2) } /* add rusage values of r2 to r1 */ -void __stdcall +void add_rusage (struct rusage *r1, struct rusage *r2) { add_timeval (&r1->ru_utime, &r2->ru_utime); @@ -59,7 +59,7 @@ add_rusage (struct rusage *r1, struct rusage *r2) } /* FIXME: what about other fields? */ -void __stdcall +void fill_rusage (struct rusage *r, HANDLE h) { KERNEL_USER_TIMES kut; -- cgit v1.2.3