From 2a1743c76d79235a3ed90aa4400333ca1c859c05 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 1 Apr 2001 05:38:08 +0000 Subject: [PATCH] * exceptions.cc (sigframe::call_signal_handler): Move out side of "C" block or some compilers will complain. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/exceptions.cc | 18 +++++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 33549f920..86c3b2f25 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Sun Apr 1 00:38:06 2001 Christopher Faylor + + * exceptions.cc (sigframe::call_signal_handler): Move out side of "C" + block or some compilers will complain. + Sun Apr 1 00:24:14 2001 Christopher Faylor * exceptions.cc (call_signal_handler_now): Rename from diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index aa3fd1180..a56b35e8e 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -1118,6 +1118,17 @@ events_terminate (void) exit_already = 1; } +extern "C" { +static int __stdcall call_signal_handler_now (); +}; + +int +sigframe::call_signal_handler () +{ + unregister (); + call_signal_handler_now (); +} + #define pid_offset (unsigned)(((_pinfo *)NULL)->pid) extern "C" { void __stdcall @@ -1137,13 +1148,6 @@ call_signal_handler_now () return sa_flags & SA_RESTART; } -int -sigframe::call_signal_handler () -{ - unregister (); - call_signal_handler_now (); -} - void unused_sig_wrapper () { /* Signal cleanup stuff. Cleans up stack (too bad that we didn't