changeset 2931:dd37ffb94c63

[project @ 1997-05-05 22:50:13 by jwe]
author jwe
date Mon, 05 May 1997 22:50:13 +0000
parents 1b219fa3c56a
children 0f33c19e5f10
files src/sighandlers.cc
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sighandlers.cc
+++ b/src/sighandlers.cc
@@ -74,6 +74,7 @@
 #if defined (MUST_REINSTALL_SIGHANDLERS)
 #define MAYBE_REINSTALL_SIGHANDLER(sig, handler) \
   octave_set_signal_handler (sig, handler)
+#define REINSTALL_USES_SIG 1
 #else
 #define MAYBE_REINSTALL_SIGHANDLER(sig, handler) \
   do { } while (0)
@@ -82,6 +83,7 @@
 #if defined (__EMX__)
 #define MAYBE_ACK_SIGNAL(sig) \
   octave_set_signal_handler (sig, SIG_ACK)
+#define ACK_USES_SIG 1
 #else
 #define MAYBE_ACK_SIGNAL(sig) \
   do { } while (0)
@@ -266,7 +268,11 @@
 // for SIGINT only.
 
 static RETSIGTYPE
+#if defined (ACK_USES_SIG) || defined (REINSTALL_USES_SIG)
 sigint_handler (int sig)
+#else
+sigint_handler (int)
+#endif
 {
   MAYBE_ACK_SIGNAL (sig);