https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=cf6c439b6dcfebe44878ec4a8cae6293ff6563f7

commit cf6c439b6dcfebe44878ec4a8cae6293ff6563f7
Author: Corinna Vinschen <cori...@vinschen.de>
Date:   Tue Jan 28 15:33:53 2020 +0100

    Cygwin: drop __stdcall from close_all_files
    
    Signed-off-by: Corinna Vinschen <cori...@vinschen.de>

Diff:
---
 winsup/cygwin/syscalls.cc | 2 +-
 winsup/cygwin/winsup.h    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 4956b6f..a6386dd 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -81,7 +81,7 @@ static int __stdcall mknod_worker (const char *, mode_t, 
mode_t, _major_t,
    but never call close.  This function is called by _exit to
    ensure we don't leave any such files lying around.  */
 
-void __stdcall
+void
 close_all_files (bool norelease)
 {
   cygheap->fdtab.lock ();
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h
index 887d54f..2916728 100644
--- a/winsup/cygwin/winsup.h
+++ b/winsup/cygwin/winsup.h
@@ -179,7 +179,7 @@ extern struct per_process_cxx_malloc 
default_cygwin_cxx_malloc;
 void events_init ();
 
 int chmod_device (class path_conv& pc, mode_t mode);
-void __stdcall close_all_files (bool = false);
+void close_all_files (bool = false);
 
 /* debug_on_trap support. see exceptions.cc:try_to_debug() */
 extern "C" void error_start_init (const char*);

Reply via email to