aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-01 05:38:08 +0000
committerChristopher Faylor <me@cgf.cx>2001-04-01 05:38:08 +0000
commit2a1743c76d79235a3ed90aa4400333ca1c859c05 (patch)
tree2ddc34f1e11bcda52881ac04ade30ab89dfaae92
parent11f3a79b64ad13bf7c2483ed623643068f2c7b92 (diff)
downloadnewlib-2a1743c76d79235a3ed90aa4400333ca1c859c05.zip
newlib-2a1743c76d79235a3ed90aa4400333ca1c859c05.tar.gz
newlib-2a1743c76d79235a3ed90aa4400333ca1c859c05.tar.bz2
* exceptions.cc (sigframe::call_signal_handler): Move out side of "C" block or
some compilers will complain.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/exceptions.cc18
2 files changed, 16 insertions, 7 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 33549f9..86c3b2f 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+Sun Apr 1 00:38:06 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * 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 <cgf@cygnus.com>
* exceptions.cc (call_signal_handler_now): Rename from
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index aa3fd11..a56b35e 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