Mercurial > octave-nkf
diff src/sighandlers.cc @ 2931:dd37ffb94c63
[project @ 1997-05-05 22:50:13 by jwe]
author | jwe |
---|---|
date | Mon, 05 May 1997 22:50:13 +0000 |
parents | 66ef74ee5d9f |
children | 5708b8bb4f06 |
line wrap: on
line diff
--- a/src/sighandlers.cc Mon May 05 06:00:57 1997 +0000 +++ b/src/sighandlers.cc Mon May 05 22:50:13 1997 +0000 @@ -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);